From 41d68e780f13df893992a5842a44ed51a094ee87 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 26 Apr 2013 14:19:16 -0400 Subject: [PATCH] do not trigger visual changes when Fill::set_* methods don't change anything --- libs/canvas/fill.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libs/canvas/fill.cc b/libs/canvas/fill.cc index 339549f8be..9947415cf9 100644 --- a/libs/canvas/fill.cc +++ b/libs/canvas/fill.cc @@ -39,21 +39,21 @@ Fill::Fill (Group* parent) void Fill::set_fill_color (Color color) { - begin_visual_change (); - - _fill_color = color; - - end_visual_change (); + if (_fill_color != color) { + begin_visual_change (); + _fill_color = color; + end_visual_change (); + } } void Fill::set_fill (bool fill) { - begin_visual_change (); - - _fill = fill; - - end_visual_change (); + if (_fill != fill) { + begin_visual_change (); + _fill = fill; + end_visual_change (); + } } void