]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textcmn.cpp
don't call wxLogLastError() in wx{File|Path}Exists
[wxWidgets.git] / src / common / textcmn.cpp
index 6a494d434cf125c3231f3dc36c471c14ece6b105..11c063dfdd95f8ccbc4a0ce2b85e769ec1d9d66d 100644 (file)
@@ -278,7 +278,7 @@ bool wxTextCtrlBase::CanPaste() const
 }
 
 // ----------------------------------------------------------------------------
-// misc
+// selection and ranges
 // ----------------------------------------------------------------------------
 
 void wxTextCtrlBase::SelectAll()
@@ -291,6 +291,11 @@ wxString wxTextCtrlBase::GetStringSelection() const
     long from, to;
     GetSelection(&from, &to);
 
+    return GetRange(from, to);
+}
+
+wxString wxTextCtrlBase::GetRange(long from, long to) const
+{
     wxString sel;
     if ( from < to )
     {