void HYDROGUI_ImportImageOp::closePreview()
{
+ // It's very strange, but without calling this method (it's quite safe) a crash is stably reproduced.
+ // Scenario: create any non-Graphics view, activate import op, click apply.
+ // Result: a few SIGSEGVs coming from processEvents(), then crash.
+ if( myPreviewViewManager )
+ if( GraphicsView_Viewer* aViewer = myPreviewViewManager->getViewer() )
+ if( GraphicsView_ViewPort* aViewPort = aViewer->getActiveViewPort() )
+ aViewPort->onBoundingRectChanged();
+
if( myPreviewPrs )
{
delete myPreviewPrs;