summaryrefslogtreecommitdiffstats
path: root/src/ui/interface.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-07-31 22:44:30 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-07-31 22:44:30 +0000
commite16723672743dc4014f4823a7326411618fcf386 (patch)
treec74f490281f8a9995b54e0480c26660eb944436d /src/ui/interface.cpp
parentFixing coding style (diff)
downloadinkscape-e16723672743dc4014f4823a7326411618fcf386.tar.gz
inkscape-e16723672743dc4014f4823a7326411618fcf386.zip
Remove XGD_DATA_DIR as sugestion of su_v
Diffstat (limited to 'src/ui/interface.cpp')
-rw-r--r--src/ui/interface.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp
index 17501019b..cd924f79d 100644
--- a/src/ui/interface.cpp
+++ b/src/ui/interface.cpp
@@ -302,8 +302,11 @@ void sp_ui_reload()
continue;
}
sp_create_window(dtw, TRUE);
- sp_namedview_window_from_document(static_cast<SPDesktop *>(dtw->view));
- sp_namedview_update_layers_from_document(static_cast<SPDesktop *>(dtw->view));
+ SPDesktop * desktop = static_cast<SPDesktop *>(dtw->view);
+ if (desktop) {
+ sp_namedview_window_from_document(desktop);
+ sp_namedview_update_layers_from_document(desktop);
+ }
dt->destroyWidget();
i++;
}