src/editmodes/magicWandMode.cpp

changeset 1073
a0a0d581309b
parent 1072
9ce9496427f2
child 1104
edddb9b0db9e
equal deleted inserted replaced
1072:9ce9496427f2 1073:a0a0d581309b
178 { 178 {
179 case Set: 179 case Set:
180 currentDocument()->clearSelection(); 180 currentDocument()->clearSelection();
181 case Additive: 181 case Additive:
182 for (LDObject* obj : m_selection) 182 for (LDObject* obj : m_selection)
183 obj->select(); 183 currentDocument()->addToSelection(obj);
184 break; 184 break;
185 185
186 case Subtractive: 186 case Subtractive:
187 for (LDObject* obj : m_selection) 187 for (LDObject* obj : m_selection)
188 obj->deselect(); 188 currentDocument()->removeFromSelection(obj);
189 break; 189 break;
190 190
191 case InternalRecursion: 191 case InternalRecursion:
192 break; 192 break;
193 } 193 }

mercurial