[libgda/LIBGDA_5.0] GdauiRawGrid correction



commit 5989121b3629eb5599d03811a61e431c317d1de6
Author: Vivien Malerba <malerba gnome-db org>
Date:   Wed Apr 18 14:47:03 2012 +0200

    GdauiRawGrid correction

 libgda-ui/gdaui-raw-grid.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libgda-ui/gdaui-raw-grid.c b/libgda-ui/gdaui-raw-grid.c
index 5cc0b4a..47ec298 100644
--- a/libgda-ui/gdaui-raw-grid.c
+++ b/libgda-ui/gdaui-raw-grid.c
@@ -488,7 +488,11 @@ proxy_reset_was_soft (GdauiRawGrid *grid, GdaDataModel *new_model)
 	GdaDataModelIter *iter;
 	gboolean retval = FALSE;
 
-	if (!new_model || (new_model != (GdaDataModel*) grid->priv->proxy))
+	if (!new_model)
+		return FALSE;
+	else if (new_model == (GdaDataModel*) grid->priv->proxy)
+		return TRUE;
+	else if (!grid->priv->iter)
 		return FALSE;
 
 	iter = gda_data_model_create_iter (new_model);



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