]> git.lyx.org Git - lyx.git/blobdiff - src/IndicesList.cpp
Include the recently added test files in package
[lyx.git] / src / IndicesList.cpp
index a73dbb90b042be053f81db83c8e918fc46d7b223..9f22373f3ab906f55af1b731fc27842bad8d8b13 100644 (file)
@@ -69,6 +69,8 @@ Index::Index()
        // no theApp() with command line export
        if (theApp())
                theApp()->getRgbColor(Color_indexlabel, color_);
+       else
+               frontend::Application::getRgbColorUncached(Color_indexlabel, color_);
 }
 
 
@@ -112,9 +114,14 @@ void Index::setColor(string const & str)
 {
        if (str.size() == 7 && str[0] == '#')
                color_ = rgbFromHexName(str);
-       else
+       else {
                // no color set or invalid color -- use predefined color
-               theApp()->getRgbColor(Color_indexlabel, color_);
+               // no theApp() with command line export
+               if (theApp())
+                       theApp()->getRgbColor(Color_indexlabel, color_);
+               else
+                       frontend::Application::getRgbColorUncached(Color_indexlabel, color_);
+       }
 }