]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourMainFrame.cxx
index e6a1eec84fc756e626e1892c515088358323c7b9..9109393fda5083f8f11e50dfdfe86d835bcec45b 100644 (file)
@@ -1616,7 +1616,8 @@ void wxContourMainFrame::referenceLine()
                _refLineView->SetWidthLine(4);
 
                _refLineControl->SetModelView( _refLineModel , _refLineView );
-               viewer2D->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _refLineControl );
+               vtkInteractorStyleBaseView* style = (vtkInteractorStyleBaseView*)viewer2D->GetInteractorStyleBaseView();
+               style->AddInteractorStyleMaracas( _refLineControl );
                _refLineModel->SetCloseContour(false);
                _refLineControl->CreateNewManualContour();
 
@@ -1670,7 +1671,8 @@ void wxContourMainFrame::refLineShow()
                        _refLineView->SetZ( 1200 );
 
                        _refLineControl->SetModelView( _refLineModel , _refLineView );
-                       viewer2D->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _refLineControl );
+                       vtkInteractorStyleBaseView* style = (vtkInteractorStyleBaseView*)viewer2D->GetInteractorStyleBaseView();
+                       style->AddInteractorStyleMaracas( _refLineControl );
                        _refLineControl->CreateNewManualContour();
                        _refLineControl->SetActive(true);
                        _refLineView->RefreshContour();