Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Undo paste (Read 2374 times)
Oskar
YaBB Newbies
*
Offline


I like YaBB 1G - SP1!

Posts: 21
Joined: Nov 28th, 2008
Undo paste
May 6th, 2009 at 2:47pm
Print Post  
When I paste a shape node it adds two steps to the undo manager. It adds one step for creating the shape in the same place as the old one, and on step for moving the shape. So if I want to undo the pasting of a shape I have to press undo two times.
Pasting a link only adds one step, so it’s not as easy as just merging the last two undo records.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo paste
Reply #1 - May 7th, 2009 at 10:08am
Print Post  
Try calling UndoManager.StartComposite before PasteFromClipboard and CompositeCommand.Execute() after that.
  
Back to top
 
IP Logged
 
Oskar
YaBB Newbies
*
Offline


I like YaBB 1G - SP1!

Posts: 21
Joined: Nov 28th, 2008
Re: Undo paste
Reply #2 - May 8th, 2009 at 8:51am
Print Post  
That worked. Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint