8000 Handle default in offset position correctly · kkoci/matplotlib@b248596 · GitHub
[go: up one dir, main page]

Skip to content

Commit b248596

Browse files
committed
Handle default in offset position correctly
1 parent 9ef2358 commit b248596

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/py_converters.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ int convert_offset_position(PyObject *obj, void *offsetp)
499499

500500
if (convert_string_enum(obj, "offset_position", names, values, &result)) {
501501
*offset = (e_offset_position)result;
502+
} else {
503+
PyErr_Clear();
502504
}
503505

504506
return 1;

0 commit comments

Comments
 (0)
0