Bug 1485 - Setting global properties in config file (raw text) does not have any effect
authorMitch Watrous <watrous@u.washington.edu>
Wed, 29 Aug 2012 08:47:39 -0700
changeset 9030 800dfb523bfc
parent 9029 6c6ab28a57b0
child 9031 b8d8b17a1fb6
Bug 1485 - Setting global properties in config file (raw text) does not have any effect
src/config-store/model/raw-text-config.cc
--- a/src/config-store/model/raw-text-config.cc	Wed Aug 29 05:42:00 2012 -0700
+++ b/src/config-store/model/raw-text-config.cc	Wed Aug 29 08:47:39 2012 -0700
@@ -115,6 +115,7 @@
 void 
 RawTextConfigLoad::Default (void)
 {
+  m_is->clear ();
   m_is->seekg (0);
   std::string type, name, value;
   *m_is >> type >> name >> value;
@@ -132,6 +133,7 @@
 void 
 RawTextConfigLoad::Global (void)
 {
+  m_is->clear ();
   m_is->seekg (0);
   std::string type, name, value;
   *m_is >> type >> name >> value;