From 19c597bd6ecdc61469de2a24d928ff7acac4c4f0 Mon Sep 17 00:00:00 2001 From: Benjamin Hennion <17818041+bhennion@users.noreply.github.com> Date: Sat, 9 Mar 2024 21:50:14 +0100 Subject: [PATCH] Restore selection box size as prior to 62ac7b6 --- src/core/control/tools/EditSelection.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/control/tools/EditSelection.cpp b/src/core/control/tools/EditSelection.cpp index 2c53377e5ec2..ac845a702e74 100644 --- a/src/core/control/tools/EditSelection.cpp +++ b/src/core/control/tools/EditSelection.cpp @@ -219,10 +219,11 @@ EditSelection::EditSelection(Control* ctrl, InsertionOrder elts, const PageRef& undo(ctrl->getUndoRedoHandler()), snappingHandler(ctrl->getSettings()) { // make the visible bounding box large enough so that anchors do not collapse even for horizontal/vertical strokes - x = bounds.minX - 1.5 * this->btnWidth; - y = bounds.minY - 1.5 * this->btnWidth; - width = bounds.getWidth() + 3 * this->btnWidth; - height = bounds.getHeight() + 3 * this->btnWidth; + const double PADDING = 12.; + x = bounds.minX - PADDING; + y = bounds.minY - PADDING; + width = bounds.getWidth() + 2 * PADDING; + height = bounds.getHeight() + 2 * PADDING; this->contents = std::make_unique(this->getRect(), this->snappedBounds, this->sourcePage, this->sourceLayer, this->view);