Skip to content

Commit

Permalink
Restore selection box size as prior to 62ac7b6
Browse files Browse the repository at this point in the history
  • Loading branch information
bhennion committed Mar 10, 2024
1 parent 8207b89 commit 19c597b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/control/tools/EditSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<EditSelectionContents>(this->getRect(), this->snappedBounds, this->sourcePage,
this->sourceLayer, this->view);
Expand Down

0 comments on commit 19c597b

Please sign in to comment.