* 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/branches/BRANCH_1_5_X@20841 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-10-08 09:25:37 +00:00
parent 891457c962
commit 6887b5a328
2 changed files with 4 additions and 2 deletions

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

View File

@ -33,7 +33,7 @@ What's new
* DOCUMENT INPUT/OUTPUT
- Fix a crash when exporting a file with a branch from the command line (bug 4255).
* USER INTERFACE: