Revision: 65354
          http://sourceforge.net/p/brlcad/code/65354
Author:   ejno
Date:     2015-06-17 16:07:45 +0000 (Wed, 17 Jun 2015)
Log Message:
-----------
handle multiple references within the same tree

Modified Paths:
--------------
    brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp

Modified: brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp
===================================================================
--- brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp    2015-06-17 
15:47:40 UTC (rev 65353)
+++ brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp    2015-06-17 
16:07:45 UTC (rev 65354)
@@ -1853,10 +1853,11 @@
     std::pair<std::map<std::string, Section *>::iterator, bool> found =
        m_sections.insert(std::make_pair(name, static_cast<Section *>(NULL)));
 
-    if (!found.second)
-       throw std::logic_error("Section already created (region used twice in 
the same tree)");
-
-    found.first->second = new Section(name, true);
+    if (found.second)
+       found.first->second = new Section(name, true);
+    else {
+       // multiple references within the same comb tree
+    }
 }
 
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to