diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-07-31 22:44:30 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-07-31 22:44:30 +0000 |
| commit | e16723672743dc4014f4823a7326411618fcf386 (patch) | |
| tree | c74f490281f8a9995b54e0480c26660eb944436d /src/ui/interface.cpp | |
| parent | Fixing coding style (diff) | |
| download | inkscape-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.cpp | 7 |
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++; } |
