Skip to content

Commit

Permalink
Merge pull request #25030 from mathesoncalum/24791-image_stuck_fix
Browse files Browse the repository at this point in the history
Fix #24791: Only allow image resizing with grips
  • Loading branch information
mike-spa authored Oct 4, 2024
2 parents 8fc4bbb + af4e403 commit 38642e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notation/view/notationviewinputcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ void NotationViewInputController::handleLeftClick(const ClickContext& ctx)

bool hitElementIsAlreadyBeingEdited = viewInteraction()->isElementEditStarted() && viewInteraction()->editedItem() == ctx.hitElement;
if (!selection->isRange() && ctx.hitElement && ctx.hitElement->needStartEditingAfterSelecting() && !hitElementIsAlreadyBeingEdited) {
if (ctx.hitElement->hasGrips() && selection->elements().size() == 1) {
if (ctx.hitElement->hasGrips() && !ctx.hitElement->isImage() && selection->elements().size() == 1) {
viewInteraction()->startEditGrip(ctx.hitElement, ctx.hitElement->gripsCount() > 4 ? Grip::DRAG : Grip::MIDDLE);
} else {
viewInteraction()->startEditElement(ctx.hitElement, false);
Expand Down

0 comments on commit 38642e3

Please sign in to comment.