diff -r 2d01590da286 -r aac6f0021070 src/misc.cc --- a/src/misc.cc Fri Jan 10 11:09:38 2014 +0200 +++ b/src/misc.cc Fri Jan 10 15:28:29 2014 +0200 @@ -211,18 +211,20 @@ // ----------------------------------------------------------------------------- Vertex rotPoint (const QList& objs) { - LDBoundingBox box; - switch (edit_rotpoint) { case ObjectOrigin: { + LDBoundingBox box; + // Calculate center vertex for (LDObject* obj : objs) + { if (obj->hasMatrix()) box << dynamic_cast (obj)->getPosition(); else box << obj; + } return box.center(); }