Timeline: Fix bug painting marching ants ouside the cel bounds

This commit is contained in:
David Capello 2017-07-18 17:41:57 -03:00
parent 147f36077b
commit b79512d3b4

View File

@ -1686,11 +1686,14 @@ void Timeline::drawClipboardRange(ui::Graphics* g)
if (!m_clipboard_timer.isRunning())
m_clipboard_timer.start();
CheckedDrawMode checked(g, m_offset_count,
gfx::rgba(0, 0, 0, 255),
gfx::rgba(255, 255, 255, 255));
g->drawRect(gfx::rgba(0, 0, 0),
getRangeBounds(clipboard_range));
IntersectClip clip(g, getCelsBounds());
if (clip) {
CheckedDrawMode checked(g, m_offset_count,
gfx::rgba(0, 0, 0, 255),
gfx::rgba(255, 255, 255, 255));
g->drawRect(gfx::rgba(0, 0, 0),
getRangeBounds(clipboard_range));
}
}
void Timeline::drawTop(ui::Graphics* g)