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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to