Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -253,7 +253,7 @@ StackedLayerModel ...@@ -253,7 +253,7 @@ StackedLayerModel
? m_Current ? m_Current
: ( m_Current>0 : ( m_Current>0
? m_Current - 1 ? m_Current - 1
: StackedLayerModel::NIL_INDEX ); : GetCount()>0 ? 0 : StackedLayerModel::NIL_INDEX );
// //
// Emit signals. // Emit signals.
...@@ -287,7 +287,7 @@ StackedLayerModel ...@@ -287,7 +287,7 @@ StackedLayerModel
? m_Reference ? m_Reference
: ( m_Reference > 0 : ( m_Reference > 0
? m_Reference - 1 ? m_Reference - 1
: StackedLayerModel::NIL_INDEX ), : GetCount() > 0 ? 0 : StackedLayerModel::NIL_INDEX ),
true true
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment