Skip to content
Snippets Groups Projects
Commit ee149cca authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

cleanup and fix bug

parent 7a82ac83
No related branches found
No related tags found
1 merge request!2779Following !2777
Pipeline #177558 passed
...@@ -338,7 +338,7 @@ void MaskGraphicsScene::updateOverlays() ...@@ -338,7 +338,7 @@ void MaskGraphicsScene::updateOverlays()
} }
} }
// update Z-values of all IMaskView to reflect stacking order // update Z-values of all overlays to reflect stacking order
int z = 0; int z = 0;
for (const MaskItem* maskItem : *m_masks) { for (const MaskItem* maskItem : *m_masks) {
if (IOverlay* overlay = m_mask2overlay[maskItem]) if (IOverlay* overlay = m_mask2overlay[maskItem])
...@@ -534,7 +534,7 @@ void MaskGraphicsScene::onSceneSelectionChanged() ...@@ -534,7 +534,7 @@ void MaskGraphicsScene::onSceneSelectionChanged()
if (!selectedMaskOverlay()) { if (!selectedMaskOverlay()) {
// if mask is not selected because it was hidden, do not switch Set to unselected state // if mask is not selected because it was hidden, do not switch Set to unselected state
if (m_masks->currentItem()->isVisible()) if (m_masks->currentItem() && m_masks->currentItem()->isVisible())
m_masks->setCurrentIndex(-1); m_masks->setCurrentIndex(-1);
m_prjns->setCurrentIndex(-1); m_prjns->setCurrentIndex(-1);
} else { } else {
......
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