X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FvtkInteractorStyleBaseView.cxx;h=8cfed905075af35b7b3587986b68642d6637117c;hb=fde5fea23394507e29ff91d85748f6f77e994d5d;hp=2e059d0576fca389ec4215f4a5ab0bb827a4aaea;hpb=efe55c8afe89bd1d090c59513f2be82ad3ab9b0d;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx index 2e059d0..8cfed90 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx @@ -99,8 +99,9 @@ void vtkInteractorStyleBaseView::RemoveInteractorStyleMaracas(InteractorStyleMa { _lstInteractorStyleMaracas.erase(iter); removed = true; + } else { + iter++; } - iter++; } } //--------------------------------------------------------------------------- @@ -130,8 +131,16 @@ void vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(int type) for (i=0;iGetActive()==true){ +printf("EED %p vtkInteractorStyleBaseView A i=%d size=%d sizeLst%d\n", this, i, size, _lstInteractorStyleMaracas.size() ); + if (i < _lstInteractorStyleMaracas.size() ) + { + intStyMar = _lstInteractorStyleMaracas[i]; + } else { + intStyMar=NULL; + } +printf("EED %p vtkInteractorStyleBaseView B i=%d size=%d sizeLst%d\n", this, i, size, _lstInteractorStyleMaracas.size() ); + if (intStyMar!=NULL && intStyMar->GetActive()==true){ +printf("EED %p vtkInteractorStyleBaseView C i=%d size=%d sizeLst%d\n", this, i, size, _lstInteractorStyleMaracas.size() ); if (type ==1) { // OnRightButtonDown if (intStyMar->OnRightButtonDown()==false)