glom r1401 - in branches/glom-1-6: . glom/libglom/document



Author: murrayc
Date: Mon Jan 28 16:09:06 2008
New Revision: 1401
URL: http://svn.gnome.org/viewvc/glom?rev=1401&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:
   branches/glom-1-6/ChangeLog
   branches/glom-1-6/glom/libglom/document/document_glom.cc

Modified: branches/glom-1-6/glom/libglom/document/document_glom.cc
==============================================================================
--- branches/glom-1-6/glom/libglom/document/document_glom.cc	(original)
+++ branches/glom-1-6/glom/libglom/document/document_glom.cc	Mon Jan 28 16:09:06 2008
@@ -1757,6 +1757,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]