]> git.lyx.org Git - features.git/commitdiff
* InsetText::frame_color_: int -> ColorCode.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 29 Oct 2007 10:46:13 +0000 (10:46 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 29 Oct 2007 10:46:13 +0000 (10:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21256 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetText.cpp
src/insets/InsetText.h

index 9be9c4ced4aea761f2f90176703aaad6c10b917e..cc33329a974fc8867ba3a6e9c267cc556a0d81f7 100644 (file)
@@ -367,7 +367,7 @@ void InsetText::setDrawFrame(bool flag)
 
 ColorCode InsetText::frameColor() const
 {
-       return ColorCode(frame_color_);
+       return frame_color_;
 }
 
 
index 7d319686281d79892d9a0ee5f436fe981a3abf37..0f32ef062d491912b41e68ff7e1f58b51a50d059 100644 (file)
@@ -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;