mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 20:40:11 +01:00
minor refactor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -317,19 +317,16 @@ PyObject* wxPyDrawTextList(wxDC& dc, PyObject* textList, PyObject* pyPoints, PyO
|
||||
Py_DECREF(obj);
|
||||
goto err0;
|
||||
}
|
||||
if (!isFastText)
|
||||
Py_DECREF(obj);
|
||||
|
||||
if (PyErr_Occurred()) {
|
||||
retval = NULL;
|
||||
if (!isFastSeq)
|
||||
Py_DECREF(obj);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
||||
// Now draw the text
|
||||
dc.DrawText(string, x1, y1);
|
||||
|
||||
if (!isFastText)
|
||||
Py_DECREF(obj);
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
|
||||
Reference in New Issue
Block a user