]> git.lyx.org Git - features.git/commitdiff
* src/BranchList.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 8 Oct 2007 09:21:56 +0000 (09:21 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 8 Oct 2007 09:21:56 +0000 (09:21 +0000)
- fix crash when theApp() didn't exist (command line export of document with branches) [bug 4255]

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20840 a592a061-630c-0410-9148-cb99ea01b6c8

src/BranchList.cpp

index 8eb585d717541257932fc840c8fee522114396fa..86cb6021d1b582917be1c7e1bfea22680530cd17 100644 (file)
@@ -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_);
 }