diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-11-15 11:04:18 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-11-15 10:11:06 +0100 |
commit | 32aa6697c0b9f0ef490f42165a6b777c2b800da4 (patch) | |
tree | 939a963491d81a74735e5106f0877f04e741dce7 | |
parent | 94df17d2fcdb72bc529097d77b174d934a25cc24 (diff) |
gtktiledviewer: Don't call updateClientZoom until zoom is initialized
Avoids some console noise
Change-Id: I521e430eeabe8fcf5012834dc7be7af8c0ce418b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142724
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-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; |