Commit ee8232f7 authored by Stéphane Albert's avatar Stéphane Albert

BUG: MANTIS-1245: Fixed setting of reference-layer and zoom-to-extent when loading first image.

parent 8a45f8c9
......@@ -1184,19 +1184,19 @@ MainWindow
stackedLayerModel->SetCurrent( imageModel );
bool hasReference = stackedLayerModel->HasReference();
if( !hasReference && srt!=SRT_UNKNOWN )
stackedLayerModel->SetReference( imageModel );
if( gcs==0 )
{
if( unk==0 )
{
if( srt!=SRT_UNKNOWN )
stackedLayerModel->SetReference( imageModel );
else if( hasReference && srt==SRT_UNKNOWN )
UserZoomExtent();
}
}
else if( unk==0 && srt==SRT_UNKNOWN )
stackedLayerModel->SetReference( StackedLayerModel::NIL_INDEX );
//
// Set zoom-level which forces image-views refresh.
if( !hasReference )
UserZoomExtent();
//
// Re-activate rendering of image-views.
m_ImageView->SetBypassRenderingEnabled( bypassImageView );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment