From 611713e5fcefd26b289a7e339730994dc8e23299 Mon Sep 17 00:00:00 2001
From: Gaspar Capello <gaspar@igara.com>
Date: Fri, 19 Apr 2024 17:34:44 -0300
Subject: [PATCH] Fix CounCountour Tool: pixel perfect doesnt work after a
 straight line (fix #4256)

---
 src/app/tools/intertwiners.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/tools/intertwiners.h b/src/app/tools/intertwiners.h
index c82c6bd99..fd3f4742b 100644
--- a/src/app/tools/intertwiners.h
+++ b/src/app/tools/intertwiners.h
@@ -1,5 +1,5 @@
 // Aseprite
-// Copyright (C) 2018-2022  Igara Studio S.A.
+// Copyright (C) 2018-2024  Igara Studio S.A.
 // Copyright (C) 2001-2018  David Capello
 //
 // This program is distributed under the terms of
@@ -564,7 +564,7 @@ public:
       // point so we can restore it when erasing a point because of
       // pixel-perfect. So we set the following flag to indicate this, and
       // use it in doTransformPoint.
-      m_saveStrokeArea = (c == m_pts.size() - 1 && !m_retainedTracePolicyLast);
+      m_saveStrokeArea = (c == m_pts.size() - 1);
       if (m_saveStrokeArea) {
         clearPointshapeStrokePtAreas();
         setLastPtIndex(c);