"V3d_View::SetWindow, window of view already defined");
MyView->SetWindow(TheWindow) ;
+ // AGV: Method V3d_View::SetWindow() should assign the field MyWindow before
+ // calling Redraw(). Otherwise it is impossible to call certain methods of
+ // V3d_View like Convert() inside the context of Redraw(),
+ // particularly in class NIS_View.
+ MyWindow = TheWindow;
// SetWindow carries out SetRatio and modifies
// ViewMapping and ViewMappingDefault of MyView.
MyViewMapping = MyView->ViewMapping() ;
MyGridEchoStructure->Display (); // S3892
#endif
MyView->Redraw() ;
- MyWindow = TheWindow;
}
Standard_MultiplyDefined_Raise_if( MyView->IsDefined(),
"V3d_View::SetWindow, "
"window of view already defined");
+ // AGV: Method V3d_View::SetWindow() should assign the field MyWindow before
+ // calling Redraw(). Otherwise it is impossible to call certain methods of
+ // V3d_View like Convert() inside the context of Redraw(),
+ // particularly in class NIS_View.
+ MyWindow = aWindow;
MyView->SetWindow(aWindow, aContext, aDisplayCB, aClientData) ;
MyViewMapping = MyView->ViewMapping() ;
MyView->SetContext(MyViewContext) ;
MyView->SetBackground(MyBackground) ;
MyViewer->SetViewOn(this) ;
MyView->Redraw() ;
- MyWindow = aWindow;
}
// RIC120302