From 8a029f3e4e5181d8ca92c5e2121da4818c2a2ee4 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 17 Sep 2010 23:12:42 +0200 Subject: [PATCH] app: enable double buffering when editing vectors --- app/display/gimpdisplayshell-callbacks.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c index bbfc916e98..27f40d05b4 100644 --- a/app/display/gimpdisplayshell-callbacks.c +++ b/app/display/gimpdisplayshell-callbacks.c @@ -45,6 +45,7 @@ #include "tools/gimpmovetool.h" #include "tools/gimppainttool.h" #include "tools/gimptoolcontrol.h" +#include "tools/gimpvectortool.h" #include "tools/tool_manager.h" #include "tools/tools-enums.h" @@ -371,10 +372,12 @@ static gboolean gimp_display_shell_is_double_buffered (GimpDisplayShell *shell) { /* always double-buffer if there are overlay children or a - * transform preview, or they will flicker badly + * transform preview, or they will flicker badly. Also double + * buffer when we are editing paths. */ - if (GIMP_OVERLAY_BOX (shell->canvas)->children || - gimp_display_shell_get_show_transform (shell)) + if (GIMP_OVERLAY_BOX (shell->canvas)->children || + gimp_display_shell_get_show_transform (shell) || + GIMP_IS_VECTOR_TOOL (tool_manager_get_active (shell->display->gimp))) return TRUE; return FALSE;