diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 9be9c4ced4..cc33329a97 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -367,7 +367,7 @@ void InsetText::setDrawFrame(bool flag) ColorCode InsetText::frameColor() const { - return ColorCode(frame_color_); + return frame_color_; } diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index 7d31968628..0f32ef062d 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -13,6 +13,8 @@ #define INSETTEXT_H #include "Inset.h" + +#include "ColorCode.h" #include "Text.h" #include "support/types.h" @@ -147,10 +149,8 @@ private: /// bool drawFrame_; - /** We store the ColorCode value as an int to get Color.h out - * of the header file. - */ - int frame_color_; + /// + ColorCode frame_color_; /// mutable pit_type old_pit;