diff --git a/src/BranchList.cpp b/src/BranchList.cpp index 8eb585d717..86cb6021d1 100644 --- a/src/BranchList.cpp +++ b/src/BranchList.cpp @@ -24,7 +24,9 @@ namespace lyx { Branch::Branch() : selected_(false) { - theApp()->getRgbColor(Color::background, color_); + // no theApp() with command line export + if (theApp()) + theApp()->getRgbColor(Color::background, color_); }