Skip to content

Commit

Permalink
fix crash loading layouts with negative tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Jan 18, 2025
1 parent 5346fda commit 992f88d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private void CalculateBitmap(VirtualGroup virtualKeyboardGroup, float keyboardWi

foreach (var key in virtualKeyboardGroup.GroupedKeys)
{
if (key.Tag.Equals(DeviceKeys.NONE))
if ((int)key.Tag < 0)
continue;

var width = key.Width;
Expand Down

0 comments on commit 992f88d

Please sign in to comment.