]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.h
Fix crash when running lyx -dbg insets -e ...
[lyx.git] / src / paragraph.h
index 8d014b08b414856987bbf4e734e35cf73f96f98b..042da4b717435202e40b4cd497e6012d84826698 100644 (file)
@@ -150,7 +150,7 @@ public:
            proof environment */
        int getEndLabel(BufferParams const &) const;
        ///
-       Inset * InInset() const;
+       Inset * inInset() const;
        ///
        void setInsetOwner(Inset * i);
        ///
@@ -274,7 +274,7 @@ public:
        ///
        void insertInset(size_type pos, Inset * inset, LyXFont const &);
        ///
-       bool insertInsetAllowed(Inset * inset);
+       bool insetAllowed(Inset::Code code);
        ///
        Inset * getInset(size_type pos);
        ///
@@ -371,9 +371,9 @@ public:
                        return *this;
                }
                ///
-               Inset * operator*() { return (*it).inset; }
+               Inset * operator*() { return it->inset; }
                ///
-               size_type getPos() const {return (*it).pos; }
+               size_type getPos() const {return it->pos; }
                ///
                bool operator==(inset_iterator const & iter) const {
                        return it == iter.it;