]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx
2427 bbGEditor Support New Normal Correction of showing messages of support in the...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.cxx
index a4214980e5c2d6c1cd31917fe8115fff0cfc9817..f29a4e8f3cd33b1a4ec76cd6f8058ca05634b88d 100644 (file)
@@ -1528,12 +1528,14 @@ std::string wxVtkSceneManager::getDiagramBBS(bool wln) {
                script += "# Complex input ports\n";
                script += complexInputs;
 
-               script += LineNumber(wln, lnNmbr);
-               script += "message ";
-               script += _MessageKind;
-               script += " ";
-               script += _MessageLevel;
-               script += "\n";
+               if((_MessageKind!=" ")&&(_MessageLevel!=" ")){
+                       script += LineNumber(wln, lnNmbr);
+                       script += "message ";
+                       script += _MessageKind;
+                       script += " ";
+                       script += _MessageLevel;
+                       script += "\n";
+               }
 
                for (i = 0; i < (int) execBoxes.size(); i++) {
                        script += LineNumber(wln, lnNmbr);