[evince/wip/gpoo/gtk4-rebase-port: 85/96] ev-view: fix crash when hovering links




commit 68fd2038a4bd395bc95822cf2935a3fb8d640c73
Author: Qiu Wenbo <qiuwenbo kylinos com cn>
Date:   Tue Sep 14 16:21:38 2021 +0800

    ev-view: fix crash when hovering links
    
    Signed-off-by: Qiu Wenbo <qiuwenbo kylinos com cn>

 libview/ev-view.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 30e926b5e..73323312f 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -8294,6 +8294,9 @@ on_adjustment_value_changed (GtkAdjustment *adjustment,
                child = gtk_widget_get_next_sibling (child)) {
                EvViewChild *data = g_object_get_data (G_OBJECT (child), "ev-child");
 
+               if (!data)
+                       continue;
+
                data->x += dx;
                data->y += dy;
                if (gtk_widget_get_visible (child) && gtk_widget_get_visible (widget))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]