[anjuta] symbol-db: Fixed integer getter.



commit 69bc3b54ff36ac88747477f4daba81df30b4309a
Author: Naba Kumar <naba gnome org>
Date:   Sat Jun 19 22:05:42 2010 +0300

    symbol-db: Fixed integer getter.

 plugins/symbol-db/symbol-db-query-result.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-query-result.c b/plugins/symbol-db/symbol-db-query-result.c
index 2e42cf1..5f9510c 100644
--- a/plugins/symbol-db/symbol-db-query-result.c
+++ b/plugins/symbol-db/symbol-db-query-result.c
@@ -305,7 +305,7 @@ isymbol_get_int (IAnjutaSymbol *isymbol, IAnjutaSymbolField field,
 
 	col = result->priv->col_map[field];
 	val = gda_data_model_iter_get_value_at (result->priv->iter, col);
-	if (!val || !G_VALUE_HOLDS_STRING(val)) return 0;
+	if (!val) return 0;
 	if (field == IANJUTA_SYMBOL_FIELD_TYPE)
 	{
 		const gchar* type_str = g_value_get_string (val);



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