]> git.lyx.org Git - features.git/commitdiff
We don't need to reset counters we aren't using.
authorRichard Heck <rgheck@lyx.org>
Mon, 18 Mar 2013 22:46:08 +0000 (18:46 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 18 Mar 2013 22:46:08 +0000 (18:46 -0400)
src/Buffer.cpp

index b6213656a8b2fb71777eee6d20fe81b9177eab19..2455b808fb8baf6580ec7e1db03fcbeab5674664 100644 (file)
@@ -1900,7 +1900,9 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
                if (output_body_tag)
                        os << "<body>\n";
                XHTMLStream xs(os);
-               params().documentClass().counters().reset();
+               if (output != IncludedFile)
+                       // if we're an included file, the counters are in the master.
+                       params().documentClass().counters().reset();
                xhtmlParagraphs(text(), *this, xs, runparams);
                if (output_body_tag)
                        os << "</body>\n";