wxRichTextCtrl delete bug Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Kinou
Earned a small fee
Earned a small fee
Posts: 12
Joined: Tue Mar 13, 2007 4:06 pm
Contact:

wxRichTextCtrl delete bug

Post by Kinou » Fri Mar 06, 2009 10:16 pm

Hello,

I've got a lot of bugs with wxRichTextCtrl ...

Before upgrading to 2.8.9, I was running 2.8.5 (I think) and I had a bug : when deleting a selection containing a line break, the line break was always here. For example if I selected this text between the [ and ] and press the backspace button
text sample followed by a line b[reak

next content to de]lete
The result was :
text sample followed by a line b[
]lete
Instead of :
text sample followed by a line b[]lete
After upgrading to 2.8.9 the same process in resulting in :
text sample followed by a line b]lete
The line break is now deleted but there is one more char deleted ...
What the problem with this control ? It's very disapointing !

Any clue ? :/

Kinou
Earned a small fee
Earned a small fee
Posts: 12
Joined: Tue Mar 13, 2007 4:06 pm
Contact:

Post by Kinou » Fri Mar 06, 2009 10:55 pm

I've got the same problem with the richtext sample (under wxMac and wxMSW)

Someone could check the richtext sample for me ?

Just test deleting a selection with the backspace key.

FOr example the first line in the richtext sample is :
Welcome to wxRichTextCtrl, a wxWidgets control for editing and presenting styled text and images
If I select lcom from the Welcome word and I press the backspace key, the result is :
We to wxRichTextCtrl, a wxWidgets controlfor editing and presenting styled text and images
Could someone checks if he has this bug too ? Just run the richtext sample of wxWidgets 2.8.9 ...


Thanks in advance !

Kinou
Earned a small fee
Earned a small fee
Posts: 12
Joined: Tue Mar 13, 2007 4:06 pm
Contact:

Post by Kinou » Sun Mar 08, 2009 6:52 am

Nobody to check ?

computerquip
Experienced Solver
Experienced Solver
Posts: 72
Joined: Fri Feb 20, 2009 7:13 pm
Location: $(#wx)\src

Post by computerquip » Sun Mar 08, 2009 8:28 am

Implement it yourself?

Kinou
Earned a small fee
Earned a small fee
Posts: 12
Joined: Tue Mar 13, 2007 4:06 pm
Contact:

Post by Kinou » Sun Mar 08, 2009 10:09 am

It's not a bug, it's a feature ? :)

I'm not wanting to implement something, just pointing out a possible bug.

Thanks for your answer (?) by the way ...

catalin
Moderator
Moderator
Posts: 1597
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Post by catalin » Sun Mar 08, 2009 11:32 am

Hi there,
That was a bug, and it is fixed now in 2.8.9; to get the fix you should either take the last 2.8.x sources from svn or just wait for 2.8.10 to be released.

Actually the only file changed for this defect was /src/richtext/richtextctrl.cpp but there are other nice RTC fixes in 2.8.9 that you might "enjoy" :) if you get at least the rich text files from svn.

Kinou
Earned a small fee
Earned a small fee
Posts: 12
Joined: Tue Mar 13, 2007 4:06 pm
Contact:

Post by Kinou » Sun Mar 08, 2009 12:24 pm

Great !

Thanks a lot, I'll give it a try now :)

computerquip
Experienced Solver
Experienced Solver
Posts: 72
Joined: Fri Feb 20, 2009 7:13 pm
Location: $(#wx)\src

Post by computerquip » Mon Mar 09, 2009 4:08 pm

catalin wrote:Hi there,
That was a bug, and it is fixed now in 2.8.9; to get the fix you should either take the last 2.8.x sources from svn or just wait for 2.8.10 to be released.

Actually the only file changed for this defect was /src/richtext/richtextctrl.cpp but there are other nice RTC fixes in 2.8.9 that you might "enjoy" :) if you get at least the rich text files from svn.
^ that what I meant...But I suck at reading with less than 30 minutes of sleep on me.

Post Reply