Re: [graphviz-interest] GrappaLine.updateLine IllegalArgumentException?

"Emden R. Gansner" <[email protected]>
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
This is a bug in the grappa code. It is doing a check that there are at least two points and that 
there are at most one tail arrow and one head arrow. Arrowheads are
indicated by an 's' or an 'e' before the point in the string representation. Unfortunately, one of 
your points uses exponential notation 1.4211e-014. and the 'e'
is interpreted as another head arrow.

A simple fix would change the case for 'e' to be:

         case 'e':
         if (wasSpace) type += TAIL_ARROW_EDGE;
         wasSpace = false;
         break;


         -- Emden

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.