]> git.lyx.org Git - features.git/blobdiff - src/insets/inset.h
Applied Edwins patch, fixes to free memory read in insettext, partial fix
[features.git] / src / insets / inset.h
index c301ca901adcc4f5c355ed7375d9eddfe0167d1e..2a70ca4d857ec364f7357b497e43b83060cb153d 100644 (file)
@@ -278,7 +278,7 @@ public:
        /// open the inset
        virtual void open(BufferView *) {}
        /// close the inset
-       virtual void close(BufferView *) {}
+       virtual void close(BufferView *) const {}
        /// check if the font of the char we want inserting is correct
        /// and modify it if it is not.
        virtual bool checkInsertChar(LyXFont &);
@@ -289,6 +289,8 @@ protected:
        ///
        mutable int top_x;
        ///
+       mutable bool topx_set; /* have we already drawn ourself! */
+       ///
        mutable int top_baseline;
        ///
        mutable int scx;