From c1df3295c179b040a1d703d610e0f5a8b8dedb37 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 16 Apr 2013 20:38:10 -0400 Subject: virtual Fill:: and Outline:: methods so that Canvas::Items that cache image renderings of themselves can invalidate those caches when colors etc. change; add Item::{begin,end}_visual_change() so that we can notify the canvas more efficiently when *only* visual properties have changed and not the bounding box (probably needs to be used more widely) --- libs/canvas/outline.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/canvas/outline.cc') diff --git a/libs/canvas/outline.cc b/libs/canvas/outline.cc index 5da6e3d080..15ea4776b6 100644 --- a/libs/canvas/outline.cc +++ b/libs/canvas/outline.cc @@ -41,11 +41,11 @@ Outline::Outline (Group* parent) void Outline::set_outline_color (Color color) { - begin_change (); + begin_visual_change (); _outline_color = color; - end_change (); + end_visual_change (); } void -- cgit v1.2.3