src/Misc.cc

changeset 642
751a8df42842
parent 639
851634b85893
child 644
93dcd1a0e4bd
equal deleted inserted replaced
641:425b169a82aa 642:751a8df42842
218 218
219 // Calculate center vertex 219 // Calculate center vertex
220 for (LDObject* obj : objs) 220 for (LDObject* obj : objs)
221 { 221 {
222 if (obj->hasMatrix()) 222 if (obj->hasMatrix())
223 box << dynamic_cast<LDMatrixObject*> (obj)->getPosition(); 223 box << dynamic_cast<LDMatrixObject*> (obj)->position();
224 else 224 else
225 box << obj; 225 box << obj;
226 } 226 }
227 227
228 return box.center(); 228 return box.center();

mercurial