diff -r 9ce9496427f2 -r a0a0d581309b src/toolsets/viewtoolset.cpp --- a/src/toolsets/viewtoolset.cpp Sat Jan 28 17:47:06 2017 +0200 +++ b/src/toolsets/viewtoolset.cpp Sun Jan 29 15:05:14 2017 +0200 @@ -35,7 +35,7 @@ void ViewToolset::selectAll() { for (LDObject* obj : currentDocument()->objects()) - obj->select(); + currentDocument()->addToSelection(obj); } void ViewToolset::selectByColor() @@ -56,7 +56,7 @@ for (LDObject* obj : currentDocument()->objects()) { if (colors.contains (obj->color())) - obj->select(); + currentDocument()->addToSelection(obj); } } @@ -92,7 +92,7 @@ continue; } - obj->select(); + currentDocument()->addToSelection(obj); } } @@ -254,7 +254,7 @@ void ViewToolset::jumpTo() { bool ok; - int defaultValue = (countof(selectedObjects()) == 1) ? selectedObjects()[0]->lineNumber() : 0; + int defaultValue = (countof(selectedObjects()) == 1) ? (*selectedObjects().begin())->lineNumber() : 0; int index = QInputDialog::getInt (nullptr, "Go to line", "Go to line:", defaultValue, 1, currentDocument()->getObjectCount(), 1, &ok); if (ok) @@ -264,7 +264,7 @@ if (object) { currentDocument()->clearSelection(); - object->select(); + currentDocument()->addToSelection(object); m_window->updateSelection(); } }