]> git.lyx.org Git - lyx.git/blobdiff - src/BranchList.cpp
make frontend::Application a bit slimmer
[lyx.git] / src / BranchList.cpp
index 89884e60a2e11e77332dadd67c92e3906dcf0439..b846641e15556a217053a245a120862089c46181 100644 (file)
@@ -11,6 +11,7 @@
 #include <config.h>
 
 #include "BranchList.h"
+#include "Color.h"
 
 #include "frontends/Application.h"
 
@@ -68,10 +69,10 @@ void Branch::setColor(RGBColor const & c)
 }
 
 
-void Branch::setColor(string const & c)
+void Branch::setColor(string const & str)
 {
-       if (c.size() == 7 && c[0] == '#')
-               color_ = RGBColor(c);
+       if (str.size() == 7 && str[0] == '#')
+               color_ = rgbFromHexName(str);
        else
                // no color set or invalid color - use normal background
                theApp()->getRgbColor(Color_background, color_);