From 537cfb2d48ee915b11ef1987880a5229255e4047 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 29 Nov 2016 19:29:12 +0100 Subject: [PATCH] fix segmentation fault when caling setupWithoutGUI --- src/Gui/Application.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index ce8805f9c..3d84b346d 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -453,8 +453,10 @@ Application::Application(bool GUIenabled) // instanciate the workbench dictionary _pcWorkbenchDictionary = PyDict_New(); - createStandardOperations(); - MacroCommand::load(); + if (GUIenabled) { + createStandardOperations(); + MacroCommand::load(); + } ObjectLabelObserver::instance(); }