Skip to content

Commit bbccf51

Browse files
committed
Fix [keyboard] triggering patch state change when initializing GUI
1 parent cc28363 commit bbccf51

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Source/Objects/KeyboardObject.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ class KeyboardObject final : public ObjectBase
197197
{
198198
auto const numWhiteKeys = getNumWhiteKeys();
199199
auto const newKeyWidth = static_cast<int>(getWidth() / numWhiteKeys);
200-
201200
if (newKeyWidth > 7) {
202-
keyWidth.setValue(newKeyWidth);
203201
object->setSize(static_cast<int>(numWhiteKeys * getWhiteKeyWidth()) + Object::doubleMargin, object->getHeight());
204202
}
205203
}

0 commit comments

Comments
 (0)