]> git.lyx.org Git - features.git/commitdiff
On the road to fix #6415. The texrow object contains the correspondance
authorAbdelrazak Younes <younes@lyx.org>
Fri, 8 Jan 2010 09:00:28 +0000 (09:00 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 8 Jan 2010 09:00:28 +0000 (09:00 +0000)
table between tex rows and the lyx paragraph ids.
Not fixed yet it seems as the texrow object do not copy correctly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32876 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 63dee570eb036335eeeabaf30bd884e724a4de6a..b116f0f0945a4f8b426ee3e6553636393cb0a3f7 100644 (file)
@@ -3203,6 +3203,14 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir,
        if (!success)
                return false;
 
+       if (d->cloned_buffer_) {
+               // Enable reverse dvi or pdf to work by copying back the texrow
+               // object to the cloned buffer.
+               // FIXME: There is a possibility of concurrent access to texrow
+               // here from the main GUI thread that should be securized.
+               d->cloned_buffer_->d->texrow = d->texrow;
+       }
+
        if (put_in_tempdir) {
                result_file = tmp_result_file.absFilename();
                return true;