13
0

do not trigger visual changes when Fill::set_* methods don't change anything

This commit is contained in:
Paul Davis 2013-04-26 14:19:16 -04:00
parent f9a46e78d6
commit 41d68e780f

View File

@ -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