6 Oct 05:24
[PATCH] Bug5316
From: Richard heck <rgheck@...>
Subject: [PATCH] Bug5316
Newsgroups: gmane.editors.lyx.devel
Date: 2008-10-06 03:28:53 GMT
Subject: [PATCH] Bug5316
Newsgroups: gmane.editors.lyx.devel
Date: 2008-10-06 03:28:53 GMT
The cause of the bug is that the counter-reading code overwrites an
existing counter when it is read again, rather than updating it, as for
other bits of layout information. This patch fixes the bug and, along
the way, makes the counter-reading code more like the style-reading
code. The bulk of it is moved to Counters.cpp.
The counter syntax is changed from:
Counter
Name cnt
to the more sensible:
Counter cnt
This is more like styles, etc, and makes the code in TextClass::read()
parallel to that for styles.
I've checked this and it seems to work. Comments welcome.
If it's committed, then we'll want to update all the files containing
counters to the new format.
Richard
Index: src/Counters.h =================================================================== --- src/Counters.h (revision 26762) +++ src/Counters.h (working copy) @@ -23,6 +23,8 @@(Continue reading)
RSS Feed