Skip to content

Commit

Permalink
Merge pull request #1245 from alcomposer/enable-grid-button
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen authored Oct 27, 2023
2 parents a5c73e3 + 56194c7 commit 078f8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ObjectGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void ObjectGrid::propertyChanged(String const& name, var const& value)

Point<int> ObjectGrid::performMove(Object* toDrag, Point<int> dragOffset)
{
if (ModifierKeys::getCurrentModifiers().isShiftDown() || gridType == 0) {
if (ModifierKeys::getCurrentModifiers().isShiftDown() || gridType == 0 || !gridEnabled) {
clearIndicators();
return dragOffset;
}
Expand Down Expand Up @@ -201,7 +201,7 @@ Point<int> ObjectGrid::performMove(Object* toDrag, Point<int> dragOffset)

Point<int> ObjectGrid::performResize(Object* toDrag, Point<int> dragOffset, Rectangle<int> newResizeBounds)
{
if (ModifierKeys::getCurrentModifiers().isShiftDown() || gridType == 0) {
if (ModifierKeys::getCurrentModifiers().isShiftDown() || gridType == 0 || !gridEnabled) {
clearIndicators();
return dragOffset;
}
Expand Down

0 comments on commit 078f8de

Please sign in to comment.