]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.C
Final touch 'inset display()'; fix 'is a bit silly' bug
[lyx.git] / src / insets / inset.C
index 0b19aebd874a40e89b0925daa639ecaffcd992f9..f28c9d6b8d1645018a60af6a8b62f236d42803cd 100644 (file)
 
 #include "BufferView.h"
 #include "gettext.h"
+#include "LColor.h"
+
+
+using std::string;
 
 
 // Initialization of the counter for the inset id's,
@@ -84,13 +88,13 @@ LyXText * InsetOld::getLyXText(BufferView const * bv, bool /*recursive*/) const
 }
 
 
-void InsetOld::setBackgroundColor(EnumLColor color)
+void InsetOld::setBackgroundColor(LColor_color color)
 {
        background_color_ = color;
 }
 
 
-EnumLColor InsetOld::backgroundColor() const
+LColor_color InsetOld::backgroundColor() const
 {
        if (background_color_ == LColor::inherit) {
                if (owner())
@@ -98,7 +102,7 @@ EnumLColor InsetOld::backgroundColor() const
                else
                        return LColor::background;
        } else
-               return background_color_;
+               return LColor::color(background_color_);
 }
 
 
@@ -171,4 +175,3 @@ bool isHighlyEditableInset(InsetOld const * i)
 {
        return i && i->editable() == InsetOld::HIGHLY_EDITABLE;
 }
-