Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Copy to clipboard issues (Read 2537 times)
hrumayor
YaBB Newbies
*
Offline



Posts: 24
Location: Canada
Joined: Jun 3rd, 2009
Copy to clipboard issues
Oct 28th, 2009 at 5:41pm
Print Post  
Hi Stoyan,

I am updating to version 2.2.1. and in the process noted that CopyToClipbord of the diagram will not restore custom DiagramLink implementation, they work fine until I use copy paste the deserialization restores the DiagramLinks instead of the custom implementation.

Do you have an idea why this is happening?

Regards,
Hugo
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Copy to clipboard issues
Reply #1 - Oct 28th, 2009 at 6:33pm
Print Post  
Hi Hugo,

It should work if you override the DiagramLink.Clone method and create a copy of the link by calling your copy constructor.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
hrumayor
YaBB Newbies
*
Offline



Posts: 24
Location: Canada
Joined: Jun 3rd, 2009
Re: Copy to clipboard issues
Reply #2 - Oct 28th, 2009 at 8:59pm
Print Post  
Hi Stoyan,

The clone override fixed the problem.

I wonder why there is no copy constructor on DiagramLink, I had to use the one that has 2 extra parameters the origin and destination nodes.

Thank you,
Hugo
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint