OpenTTD

Tasklist

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

Attached to Project: OpenTTD
Opened by Leif Linse (Zuu) - Friday, 06 August 2010, 17:38 GMT
Last edited by Thijs Marinussen (Yexo) - Friday, 06 August 2010, 20:53 GMT
Type Bug
Category Interface
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

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.
This task depends upon

Closed by  Thijs Marinussen (Yexo)
Friday, 06 August 2010, 20:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r20394

Loading...