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 10 Apr 2011 10:13:01 AM UTC  
 
Category: BugSeverity: 2 - Minor
Priority: 5 - NormalItem Group: User Interface
Status: NonePrivacy: Public
Assigned to: Mark de Wever <mordante>Open/Closed: Open
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.

 

Mon 11 Apr 2011 10:20:59 AM UTC, 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 10 Apr 2011 10:13:01 AM UTC, 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));
nicks_listbox->add_row(data);

Lukasz Dobrogowski <zaroth>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

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 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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 10 Apr 2011 10:31:04 AM UTCmordanteAssigned toNone=>mordante
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup