bugBattle for Wesnoth - Bugs: bug #22046, Error when selecting small gui...

Show feedback again

bug #22046: Error when selecting small gui elements

Submitted by:  Daniel <gfgtdf>
Submitted on:  Sat May 17 19:47:15 2014  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group:  None of the others
Status: FixedPrivacy: Public
Assigned to: Mark de Wever <mordante>Open/Closed: Closed
Release: 1.13.0-devOperating System: win7

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Tue Jul 15 18:36:39 2014, comment #6:

Shadowm reminded me the fix was not backported to 1.12 yet, e74fb902e335 does that job.

Mark de Wever <mordante>
Project MemberIn charge of this item.
Sat Jun 14 12:44:54 2014, comment #5:

Thanks for the additional information. I was able to reproduce the issue and it's fixed with 02b761b24eb6.

Mark de Wever <mordante>
Project MemberIn charge of this item.
Mon Jun 9 23:00:50 2014, comment #4:

I dont have the original code which gave me the original error. I tried to reproduce the error with the following code:
(place the start event in any scenario.)

but instead of the bug with h < 0 it gives ma a similar error with w < 0. (line 1114 instead of 1119). I checked this at commit 51a2c0443fd8a381c88df8411f97bdf7da93c719.

Daniel <gfgtdf>
Project Member
Mon Jun 9 22:56:33 2014, comment #3:
Daniel <gfgtdf>
Project Member
Mon Jun 9 17:16:31 2014, comment #2:

I fixed bug #22144. gfgtdf can you verify whether it also solves the issue for you. If not, can you give me a test case?

Mark de Wever <mordante>
Project MemberIn charge of this item.
Fri Jun 6 12:34:45 2014, comment #1:

bug #22144 is a specific case of this.

Alexander van Gessel <ai0867>
Project Member
Sat May 17 19:47:15 2014, original submission:

When i select gui elements that are very small i get an error message about canvas.cpp line 1119 that h < 0.
The reason i think is, that in https://github.com/wesnoth/wesnoth/blob/master/data/gui/default/macros/_initial.cfg#L131 we use (height - 20) for dialogs/selection-border-left.png s height, which is obiously less than 0 as soon as the height is smaller than 20.

Daniel <gfgtdf>
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 shadowmaster (Updated the item)
  • -unavailable- added by mordante (Posted a comment)
  • -unavailable- added by ai0867 (Posted a comment)
  • -unavailable- added by gfgtdf (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Oct 12 12:21:07 2014shadowmasterOpen/ClosedOpen=>Closed
    Sat Jun 14 12:44:54 2014mordanteStatusReady For Test=>Fixed
    Mon Jun 9 17:16:31 2014mordanteStatusNone=>Ready For Test
      Assigned toNone=>mordante
    Sat May 17 19:47:36 2014gfgtdfSummaryError when selectiong small gui elements=>Error when selecting small gui elements
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup