#include <config.h>
#include "BranchList.h"
-#include "LColor.h"
+#include "Color.h"
#include "frontends/Application.h"
#include <algorithm>
+using std::string;
namespace lyx {
-using std::string;
-
-Branch::Branch()
+Branch::Branch() : selected_(false)
{
- theApp()->getRgbColor(LColor::background, color_);
+ // no theApp() with command line export
+ if (theApp())
+ theApp()->getRgbColor(Color::background, color_);
}
color_ = RGBColor(c);
else
// no color set or invalid color - use normal background
- theApp()->getRgbColor(LColor::background, color_);
+ theApp()->getRgbColor(Color::background, color_);
}