diff options
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 451a373d416b..4fc6fe0452c1 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -2840,6 +2840,8 @@ static gboolean spin_lok_loop(void *pData) static void updateClientZoom(LOKDocView *pDocView) { LOKDocViewPrivate& priv = getPrivate(pDocView); + if (!priv->m_fZoom) + return; // Not initialized yet? gint nScaleFactor = gtk_widget_get_scale_factor(GTK_WIDGET(pDocView)); gint nTileSizePixelsScaled = nTileSizePixels * nScaleFactor; GError* error = nullptr; |