Undomanager not set on new document

Questions on using RSyntaxTextArea should go here.

Moderator: robert

Undomanager not set on new document

Postby Arend Rensink » Sat Nov 21, 2009 12:14 pm

How do I get undo support for a new document added to a RTextArea? The method setDocument doesn't set the undo manager for the new document (nor resets it for the old, which could give rise to a bit of memory leak).

--Arend
Arend Rensink
 

Re: Undomanager not set on new document

Postby robert » Mon Nov 23, 2009 7:37 pm

Thanks for the bug report Arend. You're right, guess I never noticed this because I've never set a new Document on an RTextArea or RSyntaxTextArea. This is a simple fix and I'll push it to SVN tonight.
User avatar
robert
 
Posts: 805
Joined: Sat May 10, 2008 5:16 pm

Re: Undomanager not set on new document

Postby robert » Tue Nov 24, 2009 3:30 am

This has been fixed in SVN, revision 141. A new "official" RSyntaxTextArea release should hopefully be soon, and it will include this fix as well. Thanks again!
User avatar
robert
 
Posts: 805
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 4 guests

cron