--- a/src/miscallenous.cc Sat Aug 22 13:51:20 2015 +0300 +++ b/src/miscallenous.cc Sat Aug 22 15:37:02 2015 +0300 @@ -174,10 +174,10 @@ LDBoundingBox box; // Calculate center vertex - for (LDObjectPtr obj : objs) + for (LDObject* obj : objs) { if (obj->hasMatrix()) - box << obj.dynamicCast<LDMatrixObject>()->position(); + box << static_cast<LDMatrixObject*> (obj)->position(); else box << obj; }