From 43a3ee8bce8563da4313e88110f696618dadcb2a Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 31 Jul 2015 16:18:53 -0300 Subject: [PATCH] Fix brush preview flicker --- src/app/ui/editor/editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp index 9e7995eeb..665eae8ca 100644 --- a/src/app/ui/editor/editor.cpp +++ b/src/app/ui/editor/editor.cpp @@ -1387,9 +1387,9 @@ bool Editor::isInsideSelection() void Editor::setZoomAndCenterInMouse(Zoom zoom, const gfx::Point& mousePos, ZoomBehavior zoomBehavior) { + HideBrushPreview hide(m_brushPreview); View* view = View::getView(this); Rect vp = view->getViewportBounds(); - HideBrushPreview hide(m_brushPreview); gfx::Point screenPos; gfx::Point spritePos; @@ -1428,6 +1428,8 @@ void Editor::setZoomAndCenterInMouse(Zoom zoom, updateEditor(); setEditorScroll(scrollPos, blitValidRegion); } + + flushRedraw(); } void Editor::pasteImage(const Image* image, const Mask* mask)