[libgda/LIBGDA_4.2] Fixed GdaDataSelect's implementation of get_attributes_at()



commit 0a7a7b4d17d32922bc4de1bd43f03b75021fd61a
Author: Vivien Malerba <malerba gnome-db org>
Date:   Wed May 9 15:40:16 2012 +0200

    Fixed GdaDataSelect's implementation of get_attributes_at()

 libgda/gda-data-select.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgda/gda-data-select.c b/libgda/gda-data-select.c
index 3057613..40de52c 100644
--- a/libgda/gda-data-select.c
+++ b/libgda/gda-data-select.c
@@ -2044,7 +2044,7 @@ gda_data_select_get_attributes_at (GdaDataModel *model, gint col, gint row)
 					gchar *tmp;
 					gint i;
 					for (i = 0; i < ncols; i++) {
-						tmp = g_strdup_printf ("+%d", col);
+						tmp = g_strdup_printf ("+%d", i);
 						if (gda_set_get_holder (set, tmp))
 							imodel->priv->sh->modif_internals->cols_mod[m][i] = TRUE;
 						g_free (tmp);



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