Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9ad6a1

Browse files
committed
raise on out of range text location in backend agg
svn path=/trunk/matplotlib/; revision=6431
1 parent 0b55086 commit d9ad6a1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/_backend_agg.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,8 @@ RendererAgg::draw_text_image(const Py::Tuple& args) {
686686
y = Py::Int( args[2] );
687687
}
688688
catch (Py::TypeError) {
689-
//x,y out of range; todo issue warning?
690689
Py_XDECREF(image_array);
691-
return Py::Object();
690+
throw Py::TypeError("Invalid input arguments to draw_text_image");
692691
}
693692

694693
double angle = Py::Float( args[3] );

0 commit comments

Comments
 (0)