diff options
| author | David Yip <yipdw@alumni.rose-hulman.edu> | 2006-05-19 03:23:53 +0000 |
|---|---|---|
| committer | dwyip <dwyip@users.sourceforge.net> | 2006-05-19 03:23:53 +0000 |
| commit | 052b3b89f7b3a2e8f2ac9f027c431c71eb9f8b96 (patch) | |
| tree | 009a01b5c94f0a594d5e09f7c1085b759ea022d3 /src/inkscape.cpp | |
| parent | PDF export patch by Ulf Erikson (diff) | |
| download | inkscape-052b3b89f7b3a2e8f2ac9f027c431c71eb9f8b96.tar.gz inkscape-052b3b89f7b3a2e8f2ac9f027c431c71eb9f8b96.zip | |
fixed crash when starting up without Inkscape GUI: Inkscape messages were being redirected
to DebugDialog regardless of value of use_gui, which caused problems in DebugDialog
instantiation
(bzr r886)
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index 4051a453c..b1fbdb28d 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -561,16 +561,18 @@ inkscape_application_init (const gchar *argv0, gboolean use_gui) Inkscape::Preferences::load(); inkscape_load_menus(inkscape); - /* DebugDialog redirection. On Linux, default to OFF, on Win32, default to ON */ + /* DebugDialog redirection. On Linux, default to OFF, on Win32, default to ON. + * Use only if use_gui is enabled + */ #ifdef WIN32 #define DEFAULT_LOG_REDIRECT true #else #define DEFAULT_LOG_REDIRECT false #endif - if (prefs_get_int_attribute("dialogs.debug", "redirect", DEFAULT_LOG_REDIRECT)) + if (use_gui == TRUE && prefs_get_int_attribute("dialogs.debug", "redirect", DEFAULT_LOG_REDIRECT)) { - Inkscape::UI::Dialogs::DebugDialog::getInstance()->captureLogMessages(); + Inkscape::UI::Dialogs::DebugDialog::getInstance()->captureLogMessages(); } /* Initialize the extensions */ |
