* src/BranchList.cpp:

- 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
This commit is contained in:
Jürgen Spitzmüller 2007-10-08 09:21:56 +00:00
parent bd720f7277
commit bbb52a1c9d

View 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_);
}