0031521: Samples - update MFC ImportExport sample to use AIS_ViewController
[occt.git] / samples / mfc / standard / 08_HLR / src / HLRDoc.cpp
index 109a349..ed37fcc 100755 (executable)
@@ -128,7 +128,7 @@ void CHLRDoc::FitAll2DViews(Standard_Boolean UpdateViewer)
     if(pCurrentView->IsKindOf(RUNTIME_CLASS(OCC_2dView)) )
     {
       ASSERT_VALID(pCurrentView);
-      ((OCC_2dView*)pCurrentView)->GetV2dView()->FitAll();
+      ((OCC_2dView*)pCurrentView)->FitAll();
     }
   }
 }