Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ArgumentException from GetOutlinePoly (Read 1741 times)
shalex
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Jan 14th, 2010
ArgumentException from GetOutlinePoly
Jan 14th, 2010 at 6:29am
Print Post  
Just as a question:
I call method GetOutLinePoly from HitTestAdjustmentHandles event handler. When height of ShapeNode has zero height the method returns exception. I guess this exception shouldn't be raised by this method.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Drawing2D.GraphicsPath.get_PathPoints()
at MindFusion.Diagramming.ShapeNode.GetOutlinePoly(Boolean rendering)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ArgumentException from GetOutlinePoly
Reply #1 - Jan 14th, 2010 at 6:54am
Print Post  
I suppose we could make the method return an empty array in such case. For the time being check if width * height is greater than 0 before calling it.
  
Back to top
 
IP Logged
 
shalex
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Jan 14th, 2010
Re: ArgumentException from GetOutlinePoly
Reply #2 - Jan 16th, 2010 at 2:25pm
Print Post  
Yes, I did so.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint