diff --git a/Code/Common/mvdGLImageWidget.h b/Code/Common/mvdGLImageWidget.h index 04dadbfda3c28bbea35f5d4f76a89388a9467c1d..3f4c1b85b80cbe3a53e1e2dc1aa6eb4af134a772 100644 --- a/Code/Common/mvdGLImageWidget.h +++ b/Code/Common/mvdGLImageWidget.h @@ -197,15 +197,14 @@ GLImageWidget // // REFRESH DISPLAY. -#if 0 // set the largest possible region of the image // TODO: rename signal name when handling DataSets collections // TODO: move signal into mvdApplication and link it to DockWidget // and ImageView. - emit ModelImageRegionChanged( - model->GetNativeLargestRegion() - ); -#endif + if( model!=NULL ) + emit ModelImageRegionChanged( + model->GetNativeLargestRegion() + ); } }