Dear all,

The draw_path method in backend_cairo.py starts with a check for the number of 
vertices in the path, and raises an error if the path contains more than 18980 
vertices:

     def draw_path(self, gc, path, transform, rgbFace=None):
         if len(path.vertices) > 18980:
             raise ValueError("The Cairo backend can not draw paths longer than 
18980 points.")

This was needed in the past when cairo version 1.4.10 / pycairo version 1.4.0 
would segfault:

http://sourceforge.net/mailarchive/message.php?msg_name=487E2E78.1050501%40stsci.edu

However, we're now at cairo, pycairo version 1.8.8, and I haven't seen any 
segfaults after removing this check.

Does anybody object if I remove this check from the code?

--Michiel.



      

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to