]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
remove ^A symbol from a tail of blsurf message
authoreap <eap@opencascade.com>
Tue, 22 Apr 2008 16:56:36 +0000 (16:56 +0000)
committereap <eap@opencascade.com>
Tue, 22 Apr 2008 16:56:36 +0000 (16:56 +0000)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index 393f25cd6bbbdc5525714723f4f1f6bcf0d57999..9eb0c3824a2b82d8177ba021b64210b0bc840624 100644 (file)
@@ -574,7 +574,11 @@ status_t message_callback(message_t *msg, void *user_data)
     message_get_description(msg, &desc);
 //   if ( !error->empty() )
 //     *error += "\n";
-    *error += desc;
+    // remove ^A from the tail
+    int len = strlen( desc );
+    while (len > 0 && desc[len-1] != '\n')
+      len--;
+    error->append( desc, len );
   }
   return STATUS_OK;
 }