From: eap Date: Mon, 5 May 2008 06:01:44 +0000 (+0000) Subject: print output of BLSURF X-Git-Tag: V4_1_2rc3~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5659e84a06c1092402ef2f2501e4d2c9339e49ac;p=plugins%2Fblsurfplugin.git print output of BLSURF --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 0322ffa..345eb6a 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -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; }