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 31 Mar 2013 06:27:01 PM UTC  
 
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 31 Mar 2013 06:27:01 PM UTC, 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):
   
   
Comment:
   

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.

     

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

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Aug 2013 12:42:44 AM UTCshadowmasterOpen/ClosedOpen=>Closed
    Sun 31 Mar 2013 06:58:39 PM UTCmordanteStatusIn Progress=>Done
    Sun 31 Mar 2013 06:47:52 PM UTCmordanteStatusNone=>In Progress
      Assigned toNone=>mordante
    Sun 31 Mar 2013 06:27:01 PM UTCnurupoAttached File-=>Added wesnoth17220bug.gif, #17628
      Attached File-=>Added bugfix17220.patch, #17629
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup