URL:
<http://gna.org/bugs/?22611>
Summary: [ThemeWML] Allocating a non-existant image to a menu
item causes Wesnoth to close
Project: Battle for Wesnoth
Submitted by: crendgrim_
Submitted on: Fri 12 Sep 2014 01:35:11 PM UTC
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: User Interface
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.13.0-dev
Operating System: Linux
_______________________________________________________
Details:
If a theme sets an image file for a [menu] item that does not exist, Wesnoth
will print the following lines and close with an exit code of 0 (so it does
not appear to crash):
20140912 15:21:36 error display: could not open image
'buttons/doesntexist.png'
20140912 15:21:36 error display: could not open image
'buttons/doesntexist-pressed.png'
20140912 15:21:36 error display: could not open image
'buttons/doesntexist-active.png'
20140912 15:21:36 error display: error initializing button!
Could not create button: Image could not be found
Very short, incomplete theme to show the bug:
+verbatim-
#textdomain wesnoth
[theme]
id=Bugtest
name=_"Bug Test Theme"
[resolution]
id=1024x768
width=1024
height=768
[menu]
id=button-endturn
image=doesntexist
[/menu]
[/resolution]
[/theme]
The behavior can also be reproduced by simply editing the default theme.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?22611>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs