Salome HOME
22752: [EDF] Provide explicit feedback on what has been done by Shape Processing...
authoreap <eap@opencascade.com>
Fri, 12 Dec 2014 09:18:31 +0000 (12:18 +0300)
committereap <eap@opencascade.com>
Fri, 12 Dec 2014 09:18:31 +0000 (12:18 +0300)
 Cut off "Unknown message invoked with the keyword " at the message beginning

src/GEOM_I/GEOM_IHealingOperations_i.cc

index 53707cac8c299508a45018889ddf81154e166899..4a21bbbef537af519516eeab7b333bd0b723a948 100644 (file)
@@ -655,6 +655,13 @@ GEOM::ModifStatistics* GEOM_IHealingOperations_i::GetStatistics()
   {
     statsVar[ i ].name = modif->myModif.c_str();
     statsVar[ i ].count = modif->myCount;
+
+    // Cut off "Unknown message invoked with the keyword " at the beginning
+    const char* toRm = "Unknown message invoked with the keyword ";
+    const size_t lenToRm = strlen( toRm );
+    if ( modif->myModif.size() > lenToRm &&
+         modif->myModif.compare( 0, lenToRm, toRm ) == 0 )
+      statsVar[ i ].name = modif->myModif.substr( lenToRm ).c_str();
   }
 
   return statsVar._retn();