]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetert.h
The markDirty() and fitCursor() changes
[lyx.git] / src / insets / insetert.h
index 0217b16e69e6f26fec08942c2d558a6e211f74df..57c138b3054089b144e0537604145ded4b795079 100644 (file)
@@ -57,7 +57,7 @@ public:
        ///
        bool insertInset(BufferView *, Inset *);
        ///
-       bool insetAllowed(Inset::Code) const { return false; }
+       bool insetAllowed(Inset::Code code) const { return code == Inset::NEWLINE_CODE; }
        ///
        void setFont(BufferView *, LyXFont const &,
                             bool toggleall = false, bool selectall = false);
@@ -109,7 +109,7 @@ public:
        ///
        int width(BufferView *, LyXFont const &) const;
        ///
-       void draw(BufferView *, const LyXFont &, int , float &, bool) const;
+       void draw(BufferView *, const LyXFont &, int , float &) const;
        /// set the status of the inset
        void status(BufferView *, ERTStatus const st) const;
        ///