]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.h
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / insets / InsetCaption.h
index 734564aaaf0288b0ba0953c93e9dd45cd09122fd..c1bcd17b6b44e5111f14e0c4adb27ec06b9ec64b 100644 (file)
@@ -40,7 +40,7 @@ private:
        ///
        void write(std::ostream & os) const override;
        ///
-       RowFlags rowFlags() const override { return Display; }
+       int rowFlags() const override { return Display; }
        ///
        bool neverIndent() const override { return true; }
        ///
@@ -94,13 +94,15 @@ private:
        ///
        mutable docstring full_label_;
        ///
-       mutable int labelwidth_;
+       mutable int labelwidth_ = 0;
+       ///
+       mutable bool rtl_ = false;
        ///
        std::string floattype_;
        ///
-       bool is_subfloat_;
+       bool is_subfloat_ = false;
        ///
-       bool is_deleted_;
+       bool is_deleted_ = false;
        ///
        std::string type_;
 };