glom r1907 - in trunk: . glom/libglom/data_structure



Author: murrayc
Date: Wed Feb 18 15:47:24 2009
New Revision: 1907
URL: http://svn.gnome.org/viewvc/glom?rev=1907&view=rev

Log:
2009-02-18  Murray Cumming  <murrayc murrayc com>

* glom/libglom/data_structure/field.cc: from_file_format(): Adjusted 
for a libgda API change in gda_string_to_binary().

Modified:
   trunk/ChangeLog
   trunk/glom/libglom/data_structure/field.cc

Modified: trunk/glom/libglom/data_structure/field.cc
==============================================================================
--- trunk/glom/libglom/data_structure/field.cc	(original)
+++ trunk/glom/libglom/data_structure/field.cc	Wed Feb 18 15:47:24 2009
@@ -317,8 +317,7 @@
   
   if(glom_type == TYPE_IMAGE)
   {
-    GdaBinary* gdabinary = (GdaBinary*)g_malloc0(sizeof(GdaBinary));
-    success = gda_string_to_binary(str.c_str(), gdabinary);
+    GdaBinary* gdabinary = gda_string_to_binary(str.c_str());
     if(!success)
       return Gnome::Gda::Value();
     else



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