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 } |