From: <jd...@us...> - 2008-11-21 18:20:03
|
Revision: 6431 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6431&view=rev Author: jdh2358 Date: 2008-11-21 18:20:00 +0000 (Fri, 21 Nov 2008) Log Message: ----------- raise on out of range text location in backend agg Modified Paths: -------------- trunk/matplotlib/src/_backend_agg.cpp Modified: trunk/matplotlib/src/_backend_agg.cpp =================================================================== --- trunk/matplotlib/src/_backend_agg.cpp 2008-11-21 16:52:25 UTC (rev 6430) +++ trunk/matplotlib/src/_backend_agg.cpp 2008-11-21 18:20:00 UTC (rev 6431) @@ -686,9 +686,8 @@ y = Py::Int( args[2] ); } catch (Py::TypeError) { - //x,y out of range; todo issue warning? Py_XDECREF(image_array); - return Py::Object(); + throw Py::TypeError("Invalid input arguments to draw_text_image"); } double angle = Py::Float( args[3] ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |