]> git.lyx.org Git - features.git/commit
Fix bug #6894. We save counter information during updateBuffer(), and
authorRichard Heck <rgheck@comcast.net>
Wed, 12 Jan 2011 16:04:59 +0000 (16:04 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 12 Jan 2011 16:04:59 +0000 (16:04 +0000)
commit645f9fdf6d6f58b4c0b7c19a68721cd03c03438b
tree676b98cd276db49f5f9d57bdf1ecf1d29ea40081
parentf1a54ebe18e1568c407bd22d8a4fe05caac5b92d
Fix bug #6894. We save counter information during updateBuffer(), and
then output \setcounter macros during snippet generation, so that we get
the right equation values.

Note: It would be possible to use this same machinery to fix bugs in
instant preview, e.g., that you always get things like (0.3) as equation
numbers, if you use equations numbered by section. I'll perhaps post a
patch for that.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37186 a592a061-630c-0410-9148-cb99ea01b6c8
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h