do not trigger visual changes when Fill::set_* methods don't change anything
This commit is contained in:
parent
f9a46e78d6
commit
41d68e780f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user