Skip to content

Commit

Permalink
Only unmerge merged pixels (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
pklampros authored Feb 12, 2020
1 parent 80f5b6c commit 724e6e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion salalib/pointdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,10 @@ bool PointMap::unmergePoints()
}
for (auto& sel: m_selection_set) {
PixelRef a = sel;
unmergePixel(a);
Point p = getPoint(a);
if(p.getMergePixel() != NoPixel) {
unmergePixel(a);
}
}
clearSel();
return true;
Expand Down

0 comments on commit 724e6e2

Please sign in to comment.