]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.h
Remove background_color_ in Insets: it takes a lot of unnecessary memory,
[lyx.git] / src / insets / Inset.h
index ca824c8ee46bdf9a42c78e4325583d0aa95c0727..57c3a27cd474a46e9fede8c9ce277d23515b2cee 100644 (file)
@@ -470,9 +470,7 @@ public:
        ///
        int scroll() const { return 0; }
        ///
-       void setBackgroundColor(Color_color);
-       ///
-       Color_color backgroundColor() const;
+       virtual Color_color backgroundColor() const;
        ///
        enum CollapseStatus {
                Collapsed,
@@ -504,10 +502,6 @@ protected:
        mutable Dimension dim_;
 private:
        virtual std::auto_ptr<Inset> doClone() const = 0;
-       /** We store the Color::color value as an int to get Color.h out
-        *  of the header file.
-        */
-       int background_color_;
 };