Commit 38ba398b authored by Julien Michel's avatar Julien Michel
Browse files

BUG: When deleting a layer fallback to Projection=None only if there are no...

BUG: When deleting a layer fallback to Projection=None only if there are no more images left in the layer stack.
parent 6af817d4
......@@ -253,7 +253,7 @@ StackedLayerModel
? m_Current
: ( m_Current>0
? m_Current - 1
: StackedLayerModel::NIL_INDEX );
: GetCount()>0 ? 0 : StackedLayerModel::NIL_INDEX );
//
// Emit signals.
......@@ -287,7 +287,7 @@ StackedLayerModel
? m_Reference
: ( m_Reference > 0
? m_Reference - 1
: StackedLayerModel::NIL_INDEX ),
: GetCount() > 0 ? 0 : StackedLayerModel::NIL_INDEX ),
true
);
......
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