diff --git a/common/view/view_group.cpp b/common/view/view_group.cpp index afcd7af04a..94123f1b28 100644 --- a/common/view/view_group.cpp +++ b/common/view/view_group.cpp @@ -55,18 +55,21 @@ VIEW_GROUP::~VIEW_GROUP() void VIEW_GROUP::Add( VIEW_ITEM* aItem ) { m_items.insert( aItem ); + ViewUpdate(); } void VIEW_GROUP::Remove( VIEW_ITEM* aItem ) { m_items.erase( aItem ); + ViewUpdate(); } void VIEW_GROUP::Clear() { m_items.clear(); + ViewUpdate(); } @@ -128,7 +131,8 @@ void VIEW_GROUP::FreeItems() { delete item; } - m_items.clear(); + + Clear(); } diff --git a/include/view/view_group.h b/include/view/view_group.h index 2a1ad62756..056a812f79 100644 --- a/include/view/view_group.h +++ b/include/view/view_group.h @@ -131,6 +131,7 @@ public: inline virtual void SetLayer( int aLayer ) { m_layer = aLayer; + ViewUpdate(); } /**