src/toolsets/movetoolset.cpp

changeset 1035
8a60250175ba
parent 1027
b2f58a8e3d24
child 1063
1f15c52c11f6
--- a/src/toolsets/movetoolset.cpp	Sun May 08 16:11:40 2016 +0300
+++ b/src/toolsets/movetoolset.cpp	Sun May 08 16:26:16 2016 +0300
@@ -179,20 +179,17 @@
 
 	switch (RotationPoint(m_config->rotationPointType()))
 	{
-	case RotationPoint::ObjectOrigin:
+	case ObjectOrigin:
 		ui.objectPoint->setChecked (true);
 		break;
 
-	case RotationPoint::WorldOrigin:
+	case WorldOrigin:
 		ui.worldPoint->setChecked (true);
 		break;
 
-	case RotationPoint::CustomPoint:
+	case CustomPoint:
 		ui.customPoint->setChecked (true);
 		break;
-
-	case RotationPoint::NumValues:
-		break;
 	}
 
 	Vertex custompoint = m_config->customRotationPoint();
@@ -205,11 +202,11 @@
 		RotationPoint pointType;
 
 		if (ui.objectPoint->isChecked())
-			pointType = RotationPoint::ObjectOrigin;
+			pointType = ObjectOrigin;
 		else if (ui.objectPoint->isChecked())
-			pointType = RotationPoint::WorldOrigin;
+			pointType = WorldOrigin;
 		else
-			pointType = RotationPoint::CustomPoint;
+			pointType = CustomPoint;
 
 		custompoint.setX (ui.customX->value());
 		custompoint.setY (ui.customY->value());

mercurial