Gui: use empty
This commit is contained in:
@@ -1009,7 +1009,7 @@ Base::BoundBox3d ViewProvider::getBoundingBox(const char *subname, bool transfor
|
||||
auto doc = Application::Instance->activeDocument();
|
||||
if(doc) {
|
||||
auto views = doc->getMDIViewsOfType(View3DInventor::getClassTypeId());
|
||||
if(views.size())
|
||||
if(!views.empty())
|
||||
iview = dynamic_cast<View3DInventor*>(views.front());
|
||||
}
|
||||
if(!iview) {
|
||||
|
||||
Reference in New Issue
Block a user