From ebdaf2dec8ade8cde39a8c8fb0e0e4aa2b510809 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 21 Apr 2000 17:16:35 +0000 Subject: [PATCH] Fixed a missing parameter in wxStyledTextCtrl::GetLastChild git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/include/wx/stc/stc.h | 2 +- contrib/src/stc/stc.cpp | 4 ++-- include/wx/stc/stc.h | 2 +- src/stc/stc.cpp | 4 ++-- utils/wxPython/modules/stc/stc_.cpp | 9 +++++---- 5 files changed, 11 insertions(+), 10 deletions(-) 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);