Fix bug painting selection edges when zoom < 100% (fix #905)

This commit is contained in:
David Capello 2016-03-24 18:24:32 -03:00
parent f696d895b4
commit 7934c975ca

View File

@ -728,10 +728,12 @@ void Editor::drawMask(Graphics* g)
CheckedDrawMode checked(g, m_antsOffset);
gfx::Rect bounds = m_zoom.apply(seg.bounds());
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
if (seg.vertical())