Kaydet (Commit) 64235bc9 authored tarafından Miklos Vajna's avatar Miklos Vajna

lokdocview: fix for missing gtk_table_get_size()

Change-Id: Ib3f9849c2f28375a7e8bcd6575a6c3da0860d4fb
üst 1854a923
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment