]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.h.in
Added ability to switch off more components of the size page UI
[wxWidgets.git] / src / stc / stc.h.in
index e4b3a05406dbdfecbcd798d5245325ef3fa17be4..1c980ab3cc145842b2c165caceea75f938a01495 100644 (file)
@@ -370,7 +370,7 @@ public:
     // implement wxTextAreaBase pure virtual methods
     // ---------------------------------------------
 
     // implement wxTextAreaBase pure virtual methods
     // ---------------------------------------------
 
-    virtual int GetLineLength(long n) const { return GetLine(n).length(); }
+    virtual int GetLineLength(long lineNo) const { return static_cast<int>(GetLineText(lineNo).length()); }
     virtual wxString GetLineText(long lineNo) const
     {
         wxString text = GetLine(static_cast<int>(lineNo));
     virtual wxString GetLineText(long lineNo) const
     {
         wxString text = GetLine(static_cast<int>(lineNo));