]> git.lyx.org Git - features.git/commitdiff
Fix crash related to empty buffer_ argument.
authorRichard Heck <rgheck@comcast.net>
Wed, 15 Jul 2009 19:20:53 +0000 (19:20 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 15 Jul 2009 19:20:53 +0000 (19:20 +0000)
Restore assertion removed at r30602.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30609 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/Inset.cpp
src/mathed/InsetMathChar.h

index c6fe84e8a0cae168996d26abda3e1dcc906a0b7a..b4ee451e6aca18f4cc814b1fa79c27a7d2a71e28 100644 (file)
@@ -226,7 +226,7 @@ string insetName(InsetCode c)
 
 void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
 {
-       //LASSERT(cur.buffer() == &buffer(), return);
+       LASSERT(cur.buffer() == buffer_, return);
        cur.updateFlags(Update::Force | Update::FitCursor);
        cur.dispatched();
        doDispatch(cur, cmd);
index a9b8c2eb545ad8dd49460c2c65784b1374448d13..ccfe0b4978d03ac9bf636a52f454ffb3695e2f45 100644 (file)
@@ -22,8 +22,6 @@ public:
        ///
        explicit InsetMathChar(char_type c);
        ///
-       void setBuffer(Buffer &) {}
-       ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;