glom r1400 - in trunk: . glom/libglom/document



Author: murrayc
Date: Mon Jan 28 16:07:14 2008
New Revision: 1400
URL: http://svn.gnome.org/viewvc/glom?rev=1400&view=rev

Log:
2008-01-28  Murray Cumming  <murrayc murrayc com>

* glom/libglom/document/document_glom.cc: load_after_layout_item_field():
Call set_full_field_details() on the layout item, so we load the correct 
formatting for that field type. For instance, this means we do not lose 
the multiline formatting option when loading. 
Thanks to GÃran (TEK-en) for finding this bug.

Modified:
   trunk/ChangeLog
   trunk/glom/libglom/document/document_glom.cc

Modified: trunk/glom/libglom/document/document_glom.cc
==============================================================================
--- trunk/glom/libglom/document/document_glom.cc	(original)
+++ trunk/glom/libglom/document/document_glom.cc	Mon Jan 28 16:07:14 2008
@@ -1855,6 +1855,9 @@
 
   load_after_layout_item_usesrelationship(element, table_name, item);
 
+  //Needed to decide what formatting to load/save:
+  item->set_full_field_details( get_field(item->get_table_used(table_name), name) );
+
   item->set_editable( get_node_attribute_value_as_bool(element, GLOM_ATTRIBUTE_EDITABLE) );
 
   const xmlpp::Element* elementFormatting = get_node_child_named(element, GLOM_NODE_FORMAT);



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