lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [4968] Accommodate GUI product editor


From: Greg Chicares
Subject: [lmi-commits] [4968] Accommodate GUI product editor
Date: Mon, 31 May 2010 16:05:22 +0000

Revision: 4968
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4968
Author:   chicares
Date:     2010-05-31 16:05:22 +0000 (Mon, 31 May 2010)
Log Message:
-----------
Accommodate GUI product editor

Modified Paths:
--------------
    lmi/trunk/dbdict.cpp

Modified: lmi/trunk/dbdict.cpp
===================================================================
--- lmi/trunk/dbdict.cpp        2010-05-31 13:09:37 UTC (rev 4967)
+++ lmi/trunk/dbdict.cpp        2010-05-31 16:05:22 UTC (rev 4968)
@@ -208,7 +208,9 @@
 void DBDictionary::WriteDB(std::string const& filename)
 {
     InvalidateCache();
-    if(NumberOfEntries != dictionary_.size())
+    // When the GUI product editor loads a file and later saves it,
+    // its database contains only leaf entries.
+    if(NumberOfLeaves != dictionary_.size() && NumberOfEntries != 
dictionary_.size())
         {
         fatal_error()
             << "Error writing database '"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]