[gnumeric] Kittens: fix criticals.



commit 2c5c5eb5b7772e0354f72804c68bc06d28af225d
Author: Morten Welinder <terra gnome org>
Date:   Thu Nov 11 15:52:53 2010 -0500

    Kittens: fix criticals.

 src/gnm-pane.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnm-pane.c b/src/gnm-pane.c
index 1b0ffd0..2c5a20f 100644
--- a/src/gnm-pane.c
+++ b/src/gnm-pane.c
@@ -1727,10 +1727,10 @@ gnm_pane_handle_motion (GnmPane *pane,
 	gtk_widget_get_allocation (GTK_WIDGET (pane0), &p0a);
 
 	pane1 = scg_pane (pane->simple.scg, 1);
-	gtk_widget_get_allocation (GTK_WIDGET (pane1), &p1a);
+	if (pane1) gtk_widget_get_allocation (GTK_WIDGET (pane1), &p1a);
 
 	pane3 = scg_pane (pane->simple.scg, 3);
-	gtk_widget_get_allocation (GTK_WIDGET (pane3), &p3a);
+	if (pane3) gtk_widget_get_allocation (GTK_WIDGET (pane3), &p3a);
 
 	if (slide_flags & GNM_PANE_SLIDE_X) {
 		if (x < left)



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