<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>323053</bug_id>
          
          <creation_ts>2013-07-31 16:30:39 +0000</creation_ts>
          <short_desc>commit 913219a357252bfaee15d0df88918d2c6e3a12cf broke live preview if &quot;synchronize preview position...&quot; action is enabled</short_desc>
          <delta_ts>2013-09-01 20:39:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kile</product>
          <component>general</component>
          <version>trunk-kde4</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Eugene Shalygin">eugene.shalygin+bugzilla.kde</reporter>
          <assigned_to name="Michel Ludwig">michel.ludwig</assigned_to>
          <cc>sait.a.umar</cc>
          
          <cf_commitlink>http://commits.kde.org/kile/a212fe70364e2e59af911a8619b7c272d1ce8876</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1387269</commentid>
    <comment_count>0</comment_count>
    <who name="Eugene Shalygin">eugene.shalygin+bugzilla.kde</who>
    <bug_when>2013-07-31 16:30:39 +0000</bug_when>
    <thetext>When &quot;synchronize preview position...&quot; action is enabled, document viewer is not updated after recompilation. 

According to note for LivePreviewManager::ensureDocumentIsOpenInViewer(), it seems to me that hadToOpen and m_synchronizeViewWithCursorAction-&gt;isChecked() conditions have to be checked independently in LivePreviewManager::updatePreviewInformationAfterCompilationFinished()

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1387270</commentid>
    <comment_count>1</comment_count>
      <attachid>81485</attachid>
    <who name="Eugene Shalygin">eugene.shalygin+bugzilla.kde</who>
    <bug_when>2013-07-31 16:31:34 +0000</bug_when>
    <thetext>Created attachment 81485
Illustration and possible fix

Thes changes fix the problem for me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1394271</commentid>
    <comment_count>2</comment_count>
    <who name="Michel Ludwig">michel.ludwig</who>
    <bug_when>2013-09-01 18:53:47 +0000</bug_when>
    <thetext>Git commit a212fe70364e2e59af911a8619b7c272d1ce8876 by Michel Ludwig.
Committed on 01/09/2013 at 18:51.
Pushed by mludwig into branch &apos;master&apos;.

Fix the reloading of the document after live preview compilations

Thanks to Eugene Shalygin for suggesting the fix!

M  +8    -6    src/livepreview.cpp

http://commits.kde.org/kile/a212fe70364e2e59af911a8619b7c272d1ce8876</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1394302</commentid>
    <comment_count>3</comment_count>
    <who name="Michel Ludwig">michel.ludwig</who>
    <bug_when>2013-09-01 20:39:35 +0000</bug_when>
    <thetext>*** Bug 322527 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>81485</attachid>
            <date>2013-07-31 16:31:34 +0000</date>
            <delta_ts>2013-07-31 16:31:34 +0000</delta_ts>
            <desc>Illustration and possible fix</desc>
            <filename>fix-livepreview.path</filename>
            <type>text/plain</type>
            <size>623</size>
            <attacher name="Eugene Shalygin">eugene.shalygin+bugzilla.kde</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBzcmMvbGl2ZXByZXZpZXcuY3BwIHNyYy9saXZlcHJldmlldy5jcHAKaW5kZXgg
ZDI3MzUxYi4uZWZhODY2YiAxMDA2NDQKLS0tIHNyYy9saXZlcHJldmlldy5jcHAKKysrIHNyYy9s
aXZlcHJldmlldy5jcHAKQEAgLTEzODAsMTIgKzEzODAsMTAgQEAgdm9pZCBMaXZlUHJldmlld01h
bmFnZXI6OnVwZGF0ZVByZXZpZXdJbmZvcm1hdGlvbkFmdGVyQ29tcGlsYXRpb25GaW5pc2hlZCgp
CiAJCXNob3dQcmV2aWV3RmFpbGVkKCk7CiAJfQogCi0JaWYoIW1fc3luY2hyb25pemVWaWV3V2l0
aEN1cnNvckFjdGlvbi0+aXNDaGVja2VkKCkpIHsKLQkJaWYoIWhhZFRvT3BlbikgewotCQkJcmVs
b2FkRG9jdW1lbnRJblZpZXdlcigpOwotCQl9CisJaWYoIWhhZFRvT3BlbikgeworCQlyZWxvYWRE
b2N1bWVudEluVmlld2VyKCk7CiAJfQotCWVsc2UgeworCWlmKG1fc3luY2hyb25pemVWaWV3V2l0
aEN1cnNvckFjdGlvbi0+aXNDaGVja2VkKCkpIHsKIAkJc3luY2hyb25pemVWaWV3V2l0aEN1cnNv
cihtX3J1bm5pbmdMYVRlWEluZm8sIG1fcnVubmluZ1RleHRWaWV3LCBtX3J1bm5pbmdUZXh0Vmll
dy0+Y3Vyc29yUG9zaXRpb24oKSk7CiAJfQogCXNob3dQcmV2aWV3U3VjY2Vzc2Z1bCgpOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>