summaryrefslogtreecommitdiffstats
path: root/src/inkscape-window.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-05-24 05:07:59 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-05-26 08:33:06 +0000
commit585a9686a591f85f67a7d86b08c6e4ce2d63fc97 (patch)
tree1af0e50a72dfa4187a1e3c9d8391a1eaba318b0f /src/inkscape-window.cpp
parentAllow open paths in mirror symmetry LPE (diff)
downloadinkscape-585a9686a591f85f67a7d86b08c6e4ce2d63fc97.tar.gz
inkscape-585a9686a591f85f67a7d86b08c6e4ce2d63fc97.zip
Fix blank toolbar on startup with custom dimensions
Bug occurs with programmatic resize at startup Fixes https://gitlab.com/inkscape/inkscape/issues/125
Diffstat (limited to 'src/inkscape-window.cpp')
-rw-r--r--src/inkscape-window.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inkscape-window.cpp b/src/inkscape-window.cpp
index eb11199db..3629b45f3 100644
--- a/src/inkscape-window.cpp
+++ b/src/inkscape-window.cpp
@@ -95,6 +95,8 @@ InkscapeWindow::InkscapeWindow(SPDocument* document)
// Must show before setting zoom and view! (crashes otherwise)
// Showing after resizing/moving allows the window manager to correct an invalid size/position of the window
show();
+ // Extra call seems to ensure toolbar widgets are visible after programmatic resize
+ check_resize();
sp_namedview_zoom_and_view_from_document(_desktop);
sp_namedview_update_layers_from_document(_desktop);