Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero with edit box causes assert (AIDebug window, trunk) #4010

Closed
DorpsGek opened this issue Aug 6, 2010 · 1 comment
Closed

Zero with edit box causes assert (AIDebug window, trunk) #4010

DorpsGek opened this issue Aug 6, 2010 · 1 comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Aug 6, 2010

Zuu opened the ticket and wrote:

To trigger this bug:
* Select a translation with long enough strings (English UK do not trigger the bug, but for example Swedish does)
* Make sure to enable the ai developer tools.
* Open the AI Debug window
* Resize it to the smallest width

When the edit box become too small => Kaboom - assert is triggered.

Possible solutions:
* Change edit box drawing code to not trigger assert when the edit box becomes too small
* Set a minimum width of the edit box in the AI Debug window to say 10 pixels. (you sometimes want to make the window as small as possible to reduce the performance hit of keeping it open, without closing it). If this solution is chosen, then perhaps all other edit boxes should be checked so that they cannot trigger the assert.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4010
@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 6, 2010

Yexo closed the ticket.

Reason for closing: Fixed

In r20394


This comment was imported from FlySpray: https://bugs.openttd.org/task/4010

@DorpsGek DorpsGek closed this as completed Aug 6, 2010
@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant