]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx
Feature #1665 . RaC - Create dialog box to edit diagram properties. By now, it doesn...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.cxx
index de910b70ab1f210a3802ba6c2da7d59cdccd81f2..afaa01b68be3a006d4ae539e6be8285583ec1239 100644 (file)
@@ -819,7 +819,7 @@ bool wxVtkSceneManager::OnMouseMove()
 
                                        // FillPortText
                                        px = px - 33;
-                                       py = py;
+                                       //py = py;
                                        _fillObjectActor->SetScale(1);
                                        _fillObjectActor->GetProperty()->SetOpacity(0.50);
                                        _fillObjectActor->SetPosition(px, py, 1);
@@ -1754,14 +1754,16 @@ void wxVtkSceneManager::getCleanLine(stringstream &inputStream, std::string &lin
 {
        getline(inputStream, line,'\n');
        int size = line.length();
-       if ( line[ size-1 ]==13  )
+    if (size>0)
        {
-               line.erase(size-1,1);
-       }
+               if ( line[ size-1 ]==13  )
+               {
+                       line.erase(size-1,1);
+               } // if line
+       } // if size
 }
        
 //=========================================================================
-
 void wxVtkSceneManager::loadDiagram(stringstream &inputStream) 
 {
        int size;