src/toolsets/basictoolset.cpp

changeset 1063
1f15c52c11f6
parent 1023
9450ac3cd930
child 1065
c8ecddbd99e9
--- a/src/toolsets/basictoolset.cpp	Sat Jan 28 13:49:09 2017 +0200
+++ b/src/toolsets/basictoolset.cpp	Sat Jan 28 14:01:19 2017 +0200
@@ -261,11 +261,11 @@
 
 void BasicToolset::edit()
 {
-	if (selectedObjects().size() != 1)
-		return;
-
-	LDObject* obj = selectedObjects().first();
-	AddObjectDialog::staticDialog (obj->type(), obj);
+	if (length(selectedObjects()) == 1)
+	{
+		LDObject* obj = selectedObjects().first();
+		AddObjectDialog::staticDialog (obj->type(), obj);
+	}
 }
 
 void BasicToolset::modeSelect()

mercurial