On Sun, Apr 03, 2005 at 05:57:42PM +0300, Martin Vermeer wrote: ... > BTW there is still a bug in the math_splitinset: it has no setPosCache, > so you cannot click the cursor inside split/gathered/aligned/alignedat. > Should be fixed by adding a draw routine calling MathGridInset::draw > and setPosCache. OK?
Here's a patch for that. Trivial, almost. - Martin
Index: math_splitinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_splitinset.C,v retrieving revision 1.16 diff -u -r1.16 math_splitinset.C --- math_splitinset.C 3 Apr 2005 12:07:49 -0000 1.16 +++ math_splitinset.C 3 Apr 2005 18:24:19 -0000 @@ -55,6 +55,13 @@ } +void MathSplitInset::draw(PainterInfo & pi, int x, int y) const +{ + MathGridInset::draw(pi, x, y); + setPosCache(pi, x, y); +} + + bool MathSplitInset::getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus & flag) const { Index: math_splitinset.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_splitinset.h,v retrieving revision 1.14 diff -u -r1.14 math_splitinset.h --- math_splitinset.h 3 Apr 2005 12:07:49 -0000 1.14 +++ math_splitinset.h 3 Apr 2005 18:24:19 -0000 @@ -21,6 +21,9 @@ explicit MathSplitInset(std::string const & name); /// + void draw(PainterInfo & pi, int x, int y) const; + + /// bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus & flag) const;
pgpBNEys48eIs.pgp
Description: PGP signature