mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* 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:
parent
bd720f7277
commit
bbb52a1c9d
@ -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_);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user