Changeset - 1bbab6e592e6
[Not reviewed]
default
0 1 0
Roeland Merks - 15 years ago 2010-11-25 17:34:21
roeland.merks@cwi.nl
Reduced XML write compression mode to 0 (no compression), because Windows seems not to be able to handle it.


user: Roeland Merks <roeland.merks@cwi.nl>
branch 'default'
changed src/xmlwrite.cpp
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/xmlwrite.cpp
Show inline comments
 
@@ -823,25 +823,26 @@ void Mesh::XMLSave(const char *docname, 
 

	
 
  for_each( node_sets.begin(), node_sets.end(), bind2nd ( mem_fun( &NodeSet::XMLAdd ), xmlnodesets ) );
 

	
 
  // Add option tree for interactive application
 
  if (options) {
 
    xmlAddChild(root_node, options);
 
  }
 

	
 

	
 
  /* 
 
   * Dumping document to stdio or file
 
   */
 
  xmlSetDocCompressMode(doc,9);
 
  // Transparent compression seems not to work on Windows. So write uncompressed XML to ensure compatibility of LeafML files.
 
  xmlSetDocCompressMode(doc,0);
 
  xmlSaveFormatFileEnc(docname, doc, "UTF-8", 1);
 

	
 
  /*free the document */
 
  xmlFreeDoc(doc);
 

	
 
  /*
 
   *Free the global variables that may
 
   *have been allocated by the parser.
 
   */
 
  xmlCleanupParser();
 

	
 
  /*
0 comments (0 inline, 0 general)