src/editmodes/magicWandMode.cpp

changeset 1073
a0a0d581309b
parent 1072
9ce9496427f2
child 1104
edddb9b0db9e
--- a/src/editmodes/magicWandMode.cpp	Sat Jan 28 17:47:06 2017 +0200
+++ b/src/editmodes/magicWandMode.cpp	Sun Jan 29 15:05:14 2017 +0200
@@ -180,12 +180,12 @@
 		currentDocument()->clearSelection();
 	case Additive:
 		for (LDObject* obj : m_selection)
-			obj->select();
+			currentDocument()->addToSelection(obj);
 		break;
 
 	case Subtractive:
 		for (LDObject* obj : m_selection)
-			obj->deselect();
+			currentDocument()->removeFromSelection(obj);
 		break;
 
 	case InternalRecursion:

mercurial