#include <algorithm>
+using std::string;
namespace lyx {
-using std::string;
-
-Branch::Branch()
+Branch::Branch() : selected_(false)
{
- theApp()->getRgbColor(Color::background, color_);
+ // no theApp() with command line export
+ if (theApp())
+ theApp()->getRgbColor(Color::background, color_);
}