From c7f1f5eb2ee71d7799b110f702c650a00b1cd4fa Mon Sep 17 00:00:00 2001 From: Petros Koutsolampros Date: Mon, 19 Aug 2019 13:48:32 +0100 Subject: [PATCH] Only unmerge merged pixels --- salalib/pointdata.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/salalib/pointdata.cpp b/salalib/pointdata.cpp index 400f95a0..cdf588f0 100644 --- a/salalib/pointdata.cpp +++ b/salalib/pointdata.cpp @@ -1644,7 +1644,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;