Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Redo of paste operation losing Group (Read 3263 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 136
Location: England
Joined: Oct 23rd, 2006
Redo of paste operation losing Group
Feb 16th, 2010 at 6:41pm
Print Post  
In my Chart I can have a ShapeNode (I'll call it "box") with an attached Group containing one or more other ShapeNodes.  I can cut and paste this box around my chart via the windows clipboard and everything is fine.  I can undo the paste and the box and its Group are removed, BUT if I redo the paste the box and its group seem to be restored (i.e. all the items are there), BUT box.SubordinateGroup.AttachedNodes is empty!

Am I pushing the envelope too hard or have I done something wrong?

Thanks
DavidL
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Redo of paste operation losing Group
Reply #1 - Feb 17th, 2010 at 10:19am
Print Post  
This looks like a bug; we'll fix it for the next release. For the time being you could reattach the nodes in response to ActionRedone as a workaround. However this would add some new records to the undo history, which you will need to filter out using the ActionRecording event.

Stoyan
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 136
Location: England
Joined: Oct 23rd, 2006
Re: Redo of paste operation losing Group
Reply #2 - Feb 17th, 2010 at 11:31am
Print Post  
Thanks for your help - I'm not sure how easy the re-attach would be.  I may be cutting and pasting a number of boxes and figuring out which attachments should be attached to which boxes would be tricky.

Possibly when the user is about to re-do a paste I could cancel it (I assume I can do this) and paste from the clipboard myself.  A quick test suggests that this will work.

DavidL
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Redo of paste operation losing Group
Reply #3 - Feb 17th, 2010 at 12:40pm
Print Post  
It won't; there might be something entirely different in the clipboard at the point when Redo is called Sad
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Redo of paste operation losing Group
Reply #4 - Mar 26th, 2010 at 1:45pm
Print Post  
Hi David,

This version fixes redo of copy / paste of groups:
https://mindfusion.eu/_beta/Diagramming.WinForms.534.zip

Stoyan
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 136
Location: England
Joined: Oct 23rd, 2006
Re: Redo of paste operation losing Group
Reply #5 - Apr 1st, 2010 at 2:50pm
Print Post  
Many Thanks!.  This version fixes the bug. 

However, the view window does have a message at the top indicating that this is a beta version. I can't give my software to my client like this - when is the final version going to be available?

Thanks in advance,
DavidL
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Redo of paste operation losing Group
Reply #6 - Apr 1st, 2010 at 3:12pm
Print Post  
We'll release it next week.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint