Bug in FormattedListboxTextItem

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

niello
Quite a regular
Quite a regular
Posts: 68
Joined: Tue May 24, 2011 05:54
Contact:

Bug in FormattedListboxTextItem

Postby niello » Tue May 24, 2011 06:01

Hi.

There is a FormattedListboxTextItem class in the forum topic:
viewtopic.php?f=10&t=4322

It's very useful but I've encountered a bug with it. On Release configuration of VS2008 items are lost sometimes.
To fix this, just add

d_formattingAreaSize(0, 0)

to member initialization in constructor. May be this will help someone.

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

Re: Bug in FormattedListboxTextItem

Postby CrazyEddie » Tue May 24, 2011 08:07

Cool. It probably would have been better to post in that other topic? To keep the fix with the original code :D

CE.

niello
Quite a regular
Quite a regular
Posts: 68
Joined: Tue May 24, 2011 05:54
Contact:

Re: Bug in FormattedListboxTextItem

Postby niello » Tue May 24, 2011 12:20

Probably it would :) But that topic was about another things, not entirely or even mainly about FormattedListboxTextItem class, so I decided not to necropost to it. If you think fix should reside there please add it there or say me and I will do it. Maybe the best way is to edit original post with code.

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

Re: Bug in FormattedListboxTextItem

Postby CrazyEddie » Wed May 25, 2011 05:56

I have edited the code in the original post. Thanks :)

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 26 guests