X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd41ef6f518a4b76a4416f25cce062e305b3272e..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/stc/stc.h?ds=sidebyside diff --git a/include/wx/stc/stc.h b/include/wx/stc/stc.h index f71fe5f772..1edf28158e 100644 --- a/include/wx/stc/stc.h +++ b/include/wx/stc/stc.h @@ -4628,7 +4628,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));