From bbb52a1c9d5fa297fb6ed20ba9a5678541cb8cfc Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 8 Oct 2007 09:21:56 +0000 Subject: [PATCH] * 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 --- src/BranchList.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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_); } -- 2.39.2