X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd41ef6f518a4b76a4416f25cce062e305b3272e..404b319a85dadd7decf7a5a5331020520031a41c:/src/stc/stc.h.in?ds=sidebyside diff --git a/src/stc/stc.h.in b/src/stc/stc.h.in index e4b3a05406..1c980ab3cc 100644 --- a/src/stc/stc.h.in +++ b/src/stc/stc.h.in @@ -370,7 +370,7 @@ public: // implement wxTextAreaBase pure virtual methods // --------------------------------------------- - virtual int GetLineLength(long n) const { return GetLine(n).length(); } + virtual int GetLineLength(long lineNo) const { return static_cast(GetLineText(lineNo).length()); } virtual wxString GetLineText(long lineNo) const { wxString text = GetLine(static_cast(lineNo));