diff -r d922431eacf7 -r 1f42c03fafca src/tools/selecttool.cpp --- a/src/tools/selecttool.cpp Sun Jul 25 16:29:08 2021 +0300 +++ b/src/tools/selecttool.cpp Sun Jul 25 20:29:14 2021 +0300 @@ -15,13 +15,14 @@ return result; } -bool SelectTool::mouseClick(const Canvas::MouseClickInfo& info) +bool SelectTool::mouseClick(Document* document, Canvas* canvas) { - const ldraw::id_t highlighted = info.invoker->getHighlightedObject(); - info.invoker->clearSelection(); + static_cast(document); + const ldraw::id_t highlighted = canvas->getHighlightedObject(); + canvas->clearSelection(); if (highlighted != ldraw::NULL_ID) { - info.invoker->addToSelection(highlighted); + canvas->addToSelection(highlighted); } return true; }