Fix #505 - Brush leaves artifact pixels everywhere

This commit is contained in:
David Capello 2014-10-23 11:23:31 -03:00
parent 3e18efcd8b
commit 604a17d25b

View File

@ -1017,9 +1017,16 @@ void Editor::updateQuicktool()
return;
}
// Hide the drawing cursor with the current tool brush size before
// we change the quicktool. In this way we avoid using the
// quicktool brush size to clean the current tool cursor.
hideDrawingCursor();
tools::Tool* old_quicktool = m_quicktool;
m_quicktool = m_customizationDelegate->getQuickTool(current_tool);
showDrawingCursor();
// If the tool has changed, we must to update the status bar because
// the new tool can display something different in the status bar (e.g. Eyedropper)
if (old_quicktool != m_quicktool) {