diff --git a/contrib/include/wx/stc/stc.h b/contrib/include/wx/stc/stc.h index 04b4ec00b0..797b5cce4b 100644 --- a/contrib/include/wx/stc/stc.h +++ b/contrib/include/wx/stc/stc.h @@ -426,7 +426,7 @@ public: int DocLineFromVisible(int displayLine); int SetFoldLevel(int line, int level); int GetFoldLevel(int line); - int GetLastChild(int line); + int GetLastChild(int line, int level); int GetFoldParent(int line); void ShowLines(int lineStart, int lineEnd); void HideLines(int lineStart, int lineEnd); diff --git a/contrib/src/stc/stc.cpp b/contrib/src/stc/stc.cpp index cb5172f111..84c4d3ee98 100644 --- a/contrib/src/stc/stc.cpp +++ b/contrib/src/stc/stc.cpp @@ -1176,8 +1176,8 @@ int wxStyledTextCtrl::GetFoldLevel(int line) { } -int wxStyledTextCtrl::GetLastChild(int line) { - return SendMsg(SCI_GETLASTCHILD, line); +int wxStyledTextCtrl::GetLastChild(int line, int level) { + return SendMsg(SCI_GETLASTCHILD, line, level); } diff --git a/include/wx/stc/stc.h b/include/wx/stc/stc.h index 04b4ec00b0..797b5cce4b 100644 --- a/include/wx/stc/stc.h +++ b/include/wx/stc/stc.h @@ -426,7 +426,7 @@ public: int DocLineFromVisible(int displayLine); int SetFoldLevel(int line, int level); int GetFoldLevel(int line); - int GetLastChild(int line); + int GetLastChild(int line, int level); int GetFoldParent(int line); void ShowLines(int lineStart, int lineEnd); void HideLines(int lineStart, int lineEnd); diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index cb5172f111..84c4d3ee98 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -1176,8 +1176,8 @@ int wxStyledTextCtrl::GetFoldLevel(int line) { } -int wxStyledTextCtrl::GetLastChild(int line) { - return SendMsg(SCI_GETLASTCHILD, line); +int wxStyledTextCtrl::GetLastChild(int line, int level) { + return SendMsg(SCI_GETLASTCHILD, line, level); } diff --git a/utils/wxPython/modules/stc/stc_.cpp b/utils/wxPython/modules/stc/stc_.cpp index 3ad2027eff..85ec92998b 100644 --- a/utils/wxPython/modules/stc/stc_.cpp +++ b/utils/wxPython/modules/stc/stc_.cpp @@ -4844,17 +4844,18 @@ static PyObject *_wrap_wxStyledTextCtrl_GetFoldLevel(PyObject *self, PyObject *a return _resultobj; } -#define wxStyledTextCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) +#define wxStyledTextCtrl_GetLastChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLastChild(_swigarg0,_swigarg1)) static PyObject *_wrap_wxStyledTextCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; int _result; wxStyledTextCtrl * _arg0; int _arg1; + int _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; + char *_kwnames[] = { "self","line","level", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLastChild",_kwnames,&_argo0,&_arg1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_GetLastChild",_kwnames,&_argo0,&_arg1,&_arg2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } @@ -4865,7 +4866,7 @@ static PyObject *_wrap_wxStyledTextCtrl_GetLastChild(PyObject *self, PyObject *a } { wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLastChild(_arg0,_arg1); + _result = (int )wxStyledTextCtrl_GetLastChild(_arg0,_arg1,_arg2); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("i",_result);