patchBattle for Wesnoth - Patches: patch #3822, Fixed bug #17220: Cursor in gui2...

Show feedback again

patch #3822: Fixed bug #17220: Cursor in gui2 text box now behaves appropriately after text box overflow occurs

Submitted by:  Maxim Biro <nurupo>
Submitted on:  Sun Mar 31 18:27:01 2013  
Priority: 5 - NormalStatus: Done
Privacy: PublicAssigned to: Mark de Wever <mordante>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sun Mar 31 18:27:01 2013, original submission:

In gui2 text box, on Windows, when overflow occurs, cursor moves to the left from its supposed position (see gif attached).

The problem was found in ttext::get_cursor_position() function — after overflow occurred, pango_layout_get_cursor_pos() call returned values saying that the cursor has moved to a new line, when the text box is single-lined.

Fixed by explicitly setting text box to be single-lined.

Maxim Biro <nurupo>


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

Attach File(s):

Attached Files
file #17628:  wesnoth17220bug.gif added by nurupo (545kB - image/gif)
file #17629:  bugfix17220.patch added by nurupo (2kB - application/octet-stream)


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 (Updated the item)
  • -unavailable- added by nurupo (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Aug 6 00:42:44 2013shadowmasterOpen/ClosedOpen=>Closed
    Sun Mar 31 18:58:39 2013mordanteStatusIn Progress=>Done
    Sun Mar 31 18:47:52 2013mordanteStatusNone=>In Progress
      Assigned toNone=>mordante
    Sun Mar 31 18:27:01 2013nurupoAttached File-=>Added wesnoth17220bug.gif, #17628
      Attached File-=>Added bugfix17220.patch, #17629
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup