only queue an item redraw from Item::show() or Item::Hide() if the call changes the visibility status of the item (i.e. make no-ops really be no-ops)
This commit is contained in:
parent
836e95d964
commit
dde4d3bbc3
@ -240,15 +240,19 @@ Item::lower_to_bottom ()
|
|||||||
void
|
void
|
||||||
Item::hide ()
|
Item::hide ()
|
||||||
{
|
{
|
||||||
_visible = false;
|
if (_visible) {
|
||||||
_canvas->item_shown_or_hidden (this);
|
_visible = false;
|
||||||
|
_canvas->item_shown_or_hidden (this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Item::show ()
|
Item::show ()
|
||||||
{
|
{
|
||||||
_visible = true;
|
if (!_visible) {
|
||||||
_canvas->item_shown_or_hidden (this);
|
_visible = true;
|
||||||
|
_canvas->item_shown_or_hidden (this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Duple
|
Duple
|
||||||
|
Loading…
Reference in New Issue
Block a user