[MOAB-dev] r4595 - MOAB/trunk/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Mar 15 18:13:50 CDT 2011


Author: kraftche
Date: 2011-03-15 18:13:50 -0500 (Tue, 15 Mar 2011)
New Revision: 4595

Modified:
   MOAB/trunk/src/DebugOutput.cpp
Log:
fix debug output of empty range

Modified: MOAB/trunk/src/DebugOutput.cpp
===================================================================
--- MOAB/trunk/src/DebugOutput.cpp	2011-03-15 21:45:52 UTC (rev 4594)
+++ MOAB/trunk/src/DebugOutput.cpp	2011-03-15 23:13:50 UTC (rev 4595)
@@ -244,16 +244,16 @@
 
 void DebugOutput::list_range_real( const char* pfx, const Range& range )
 {
+  if (pfx) {
+    lineBuffer.insert( lineBuffer.end(), pfx, pfx+strlen(pfx) );
+    lineBuffer.push_back(' ');
+  }
+
   if (range.empty()) {
     print_real("<empty>\n");
     return;
   }
 
-  if (pfx) {
-    lineBuffer.insert( lineBuffer.end(), pfx, pfx+strlen(pfx) );
-    lineBuffer.push_back(' ');
-  }
-
   char numbuf[48]; // unsigned 64 bit integer can't have more than 20 decimal digits
   Range::const_pair_iterator i;
   EntityType type = MBMAXTYPE;



























More information about the moab-dev mailing list