]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
print output of BLSURF
authoreap <eap@opencascade.com>
Mon, 5 May 2008 06:01:44 +0000 (06:01 +0000)
committereap <eap@opencascade.com>
Mon, 5 May 2008 06:01:44 +0000 (06:01 +0000)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index 0322ffa1062f89ede8e6eaa5f3ea524591c22e91..345eb6a9e54a11330b73b0788f8ad81912b608a6 100644 (file)
@@ -592,11 +592,11 @@ status_t surf_fun(real *uv, real *xyz, real*du, real *dv,
 status_t message_callback(message_t *msg, void *user_data)
 {
   integer errnumber = 0;
+  char *desc;
   message_get_number(msg, &errnumber);
+  message_get_description(msg, &desc);
   if ( errnumber < 0 ) {
-    char *desc;
     string * error = (string*)user_data;
-    message_get_description(msg, &desc);
 //   if ( !error->empty() )
 //     *error += "\n";
     // remove ^A from the tail
@@ -605,5 +605,8 @@ status_t message_callback(message_t *msg, void *user_data)
       len--;
     error->append( desc, len );
   }
+  else {
+    cout << desc;
+  }
   return STATUS_OK;
 }