[Libreoffice-commits] core.git: libreofficekit/source

Miklos Vajna vmiklos at collabora.co.uk
Mon Jan 26 05:10:14 PST 2015


 libreofficekit/source/gtk/lokdocview.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 64235bc9896911b4abfca47089ac1e71056afea7
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Jan 26 14:08:45 2015 +0100

    lokdocview: fix for missing gtk_table_get_size()
    
    Change-Id: Ib3f9849c2f28375a7e8bcd6575a6c3da0860d4fb

diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c
index 7264563..372fa9d 100644
--- a/libreofficekit/source/gtk/lokdocview.c
+++ b/libreofficekit/source/gtk/lokdocview.c
@@ -163,10 +163,14 @@ void renderDocument(LOKDocView* pDocView, GdkRectangle* pPartial)
         // Same as nRows / nColumns, but from the previous renderDocument() call.
         guint nOldRows, nOldColumns;
 
+#if GTK_CHECK_VERSION(2,22,0)
         gtk_table_get_size(GTK_TABLE(pDocView->pTable), &nOldRows, &nOldColumns);
         if (nOldRows != nRows || nOldColumns != nColumns)
             // Can't do partial rendering, document size changed.
             pPartial = NULL;
+#else
+        pPartial = NULL;
+#endif
     }
     if (!pPartial)
     {


More information about the Libreoffice-commits mailing list