bug: XML number buttons crash Basalt #44

Closed
opened 2022-12-19 03:07:37 +08:00 by big-duckie · 1 comment
big-duckie commented 2022-12-19 03:07:37 +08:00 (Migrated from github.com)

Describe the bug

When using buttons in XML, if the text is set to only numbers, Basalt crashes. This bug only happens when you create buttons via XML.
If the text field has any non-numeric character the bug doesn't happen.

To Reproduce

Steps to reproduce the behavior:

  1. Create a XML layout with a button with the text "123"
  2. Add this layout to a frame.
  3. Run.
  4. Crash.

Expected behavior

It should just show the numbers, as it does when you programmatically create a button.

Checklist

[x] I am running the latest version.
Tick the box if you are running the latest version!

**Describe the bug** When using buttons in XML, if the text is set to only numbers, Basalt crashes. This bug only happens when you create buttons via XML. If the text field has any non-numeric character the bug doesn't happen. **To Reproduce** Steps to reproduce the behavior: 1. Create a XML layout with a button with the text "123" 2. Add this layout to a frame. 3. Run. 4. Crash. **Expected behavior** It should just show the numbers, as it does when you programmatically create a button. **Checklist** [x] I am running the latest version. Tick the box if you are running the latest version!
NoryiE commented 2022-12-20 03:33:16 +08:00 (Migrated from github.com)

Helloo! I think it's fixed now. Thank you very much for the report.

Helloo! I think it's fixed now. Thank you very much for the report.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GitHub/Basalt#44
No description provided.