bugBattle for Wesnoth - Bugs: bug #18012, GUI2 listbox empty label crash

Show feedback again

bug #18012: GUI2 listbox empty label crash

Submitted by:  Lukasz Dobrogowski <zaroth>
Submitted on:  Sun Apr 10 10:13:01 2011  
Category: BugSeverity: 2 - Minor
Priority: 5 - NormalItem Group: User Interface
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Release: r49151Operating System: Gentoo

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Thu Sep 1 11:30:21 2016, comment #2:

No longer seems to be an issue. Closing.

Charles Dang <vultraz>
Project Administrator
Mon Apr 11 10:20:59 2011, comment #1:

Just wanted to add, since I wasn't clear: not just adding the empty label caused game to crash, but clicking on the weird-looking empty space it apparently produced. I'd love to link the screenshot, but I can't right now. Anyway, I gave the image link to you on IRC query, mordante, so you should be able to find it.

Lukasz Dobrogowski <zaroth>
Project Member
Sun Apr 10 10:13:01 2011, original submission:

When I was hacking together this patch https://gna.org/patch/?2625 I noticed that adding a label to a listbox with both empty id and label text caused MP game to crash with following error message:

Condition 'static_cast<int>(h) >= 0' failed at /wesnoth-git/src/gui/auxiliary/canvas.cpp:1042 in function 'draw'. Extra development information: Image 'misc/selection2-border-left.png', h = -10.

The listbox in question was the nick list from the linked patch. Usage in that case was probably something along the lines of:

std::map<std::string, string_map> data;
string_map item;
item["id"] = "";
item["label"] = "";
data.insert(std::make_pair("nick", item));

Lukasz Dobrogowski <zaroth>
Project Member


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by vultraz (Posted a comment)
  • -unavailable- added by mordante (Updated the item)
  • -unavailable- added by zaroth (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Sep 1 11:30:21 2016vultrazStatusNone=>Fixed
      Assigned tomordante=>None
    Sun Apr 10 10:31:04 2011mordanteAssigned toNone=>mordante
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup