|
From: <md...@us...> - 2010-11-17 15:31:33
|
Revision: 8805
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8805&view=rev
Author: mdboom
Date: 2010-11-17 15:31:27 +0000 (Wed, 17 Nov 2010)
Log Message:
-----------
Improve exception error message when converting Python bounding box to C++
Modified Paths:
--------------
trunk/matplotlib/src/agg_py_transforms.cpp
Modified: trunk/matplotlib/src/agg_py_transforms.cpp
===================================================================
--- trunk/matplotlib/src/agg_py_transforms.cpp 2010-11-17 04:37:27 UTC (rev 8804)
+++ trunk/matplotlib/src/agg_py_transforms.cpp 2010-11-17 15:31:27 UTC (rev 8805)
@@ -77,7 +77,7 @@
if (!bbox || PyArray_NDIM(bbox) != 2 || PyArray_DIM(bbox, 0) != 2 || PyArray_DIM(bbox, 1) != 2)
{
throw Py::TypeError
- ("Argument 3 to agg_to_gtk_drawable must be a Bbox object.");
+ ("Expected a bbox array");
}
l = *(double*)PyArray_GETPTR2(bbox, 0, 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|