EditBox Carat Width Problem

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

zerro
Just popping in
Just popping in
Posts: 1
Joined: Tue Jun 19, 2012 09:26

EditBox Carat Width Problem

Postby zerro » Tue Jun 19, 2012 09:37

When I get Carat Width in FalEditbox.cpp, using the code below:

Code: Select all

 const float caret_width = caret_imagery.getBoundingRect(*d_window, text_area).getWidth();


but the result is no expected, it seems inside function getBoundingRect,

Code: Select all

 Rect bounds(0,0,0,0)

causes the wrong calculate, the left and top member of bounds will be used to as operand of ceguimin, should this two be initialized as a larger number?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: EditBox Carat Width Problem

Postby CrazyEddie » Tue Jun 19, 2012 10:00

Hi,

I was able to look at this briefly, and I think that you are correct. I have added a ticket for it so that it can be tested and corrected: http://www.cegui.org.uk/mantis/view.php?id=841

Thanks,

CE

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: EditBox Carat Width Problem

Postby CrazyEddie » Wed Jun 20, 2012 07:11

For info, I fixed this issue yesterday. The fix is in branches v0-7 and up.

CE.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 5 guests