On Sat, May 23, 2009 at 09:12:51PM -0400, Ben M. wrote:

> > Kornel found the reason for the failure. Most probably you have the
> > View Source window active.
> 
> That's definitely the problem!  When I enabled "View Source" in 1.6.1,
> reverse DVI broke.  When I disabled it in branch, reverse DVI started
> working.  =)

I fixed it in trunk. The attached patch is for branch, but I
think that this will go in only after 1.6.3.

-- 
Enrico
Index: src/Buffer.cpp
===================================================================
--- src/Buffer.cpp      (revision 29829)
+++ src/Buffer.cpp      (working copy)
@@ -2184,9 +2184,9 @@ void Buffer::getSourceCode(odocstream & 
        // No side effect of file copying and image conversion
        runparams.dryrun = true;
 
-       d->texrow.reset();
        if (full_source) {
                os << "% " << _("Preview source code") << "\n\n";
+               d->texrow.reset();
                d->texrow.newline();
                d->texrow.newline();
                if (isDocBook())
@@ -2208,14 +2208,16 @@ void Buffer::getSourceCode(odocstream & 
                                        convert<docstring>(par_end - 1))
                           << "\n\n";
                }
-               d->texrow.newline();
-               d->texrow.newline();
+               TeXRow texrow;
+               texrow.reset();
+               texrow.newline();
+               texrow.newline();
                // output paragraphs
                if (isDocBook())
                        docbookParagraphs(paragraphs(), *this, os, runparams);
                else 
                        // latex or literate
-                       latexParagraphs(*this, text(), os, d->texrow, 
runparams);
+                       latexParagraphs(*this, text(), os, texrow, runparams);
        }
 }
 

Reply via email to