From 585a9686a591f85f67a7d86b08c6e4ce2d63fc97 Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Fri, 24 May 2019 15:07:59 +1000 Subject: Fix blank toolbar on startup with custom dimensions Bug occurs with programmatic resize at startup Fixes https://gitlab.com/inkscape/inkscape/issues/125 --- src/inkscape-window.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3