Minor change

This commit is contained in:
David Capello 2018-12-04 12:51:56 -03:00
parent dcf4f70a73
commit e3dc8fa3a6

View File

@ -801,9 +801,8 @@ void Widget::getDrawableRegion(gfx::Region& region, DrawableRegionFlags flags)
view = View::getView(manager);
Rect cpos;
if (view) {
if (view)
cpos = static_cast<View*>(view)->viewportBounds();
}
else
cpos = manager->childrenBounds();