From 7934c975ca007d7b25faa8124e9a94f6ecf938a1 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 24 Mar 2016 18:24:32 -0300 Subject: [PATCH] Fix bug painting selection edges when zoom < 100% (fix #905) --- src/app/ui/editor/editor.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp index 6e4bb70a6..6310924c4 100644 --- a/src/app/ui/editor/editor.cpp +++ b/src/app/ui/editor/editor.cpp @@ -728,9 +728,11 @@ void Editor::drawMask(Graphics* g) CheckedDrawMode checked(g, m_antsOffset); gfx::Rect bounds = m_zoom.apply(seg.bounds()); - if (!seg.open()) { - if (seg.vertical()) --bounds.x; - else --bounds.y; + if (m_zoom.scale() >= 1.0) { + if (!seg.open()) { + if (seg.vertical()) --bounds.x; + else --bounds.y; + } } // The color doesn't matter, we are using CheckedDrawMode