[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krita] plugins/tools/basictools: use IntPixelCoord instead of rounding for fill tool clicks
From:       Timo Paulssen <timonator () perpetuum-immobile ! de>
Date:       2016-07-01 0:31:54
Message-ID: E1bImN8-0001ux-Ly () code ! kde ! org
[Download RAW message or body]

Git commit 67c0a61cc548669fee1f20128f30945c672cc88a by Timo Paulssen.
Committed on 01/07/2016 at 00:31.
Pushed by tpaulssen into branch 'master'.

use IntPixelCoord instead of rounding for fill tool clicks

fixes having to click pixels off-by-a-half-pixel to the top left
Fixes #355805

M  +1    -1    plugins/tools/basictools/kis_tool_fill.cc

http://commits.kde.org/krita/67c0a61cc548669fee1f20128f30945c672cc88a

diff --git a/plugins/tools/basictools/kis_tool_fill.cc b/plugins/tools/basictools/kis_tool_fill.cc
index 20724bd..ea087d6 100644
--- a/plugins/tools/basictools/kis_tool_fill.cc
+++ b/plugins/tools/basictools/kis_tool_fill.cc
@@ -98,7 +98,7 @@ void KisToolFill::beginPrimaryAction(KoPointerEvent *event)
 
     setMode(KisTool::PAINT_MODE);
 
-    m_startPos = convertToPixelCoord(event).toPoint();
+    m_startPos = convertToIntPixelCoord(event);
 }
 
 void KisToolFill::endPrimaryAction(KoPointerEvent *event)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic