X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxVtkSceneManager.cxx;h=bc9e4b53033c649d7a2ce7250bfdd11ae6e4487f;hb=467d5db94f473d376c62e55faae77b0981c6d908;hp=de910b70ab1f210a3802ba6c2da7d59cdccd81f2;hpb=92a55a7bc8ace3f27e6ebdaf56fb47938c97cced;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx index de910b7..bc9e4b5 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx @@ -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; @@ -2703,6 +2705,7 @@ std::string wxVtkSceneManager::GetCategory() { //========================================================================= void wxVtkSceneManager::SetDescription(std::string description) { _Description = description; + std::cout<<"Description:"<<_Description<