From 44cf7023c07de60b1e7e274d6cd994cca28c3395 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:39:53 +0000 Subject: [PATCH] Add more evidential comments, adjust code to follow coding style git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/textctrl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index 4fe9eb6932..cb70c7f837 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -941,8 +941,10 @@ void wxTextCtrl::Replace(wxTextPos from, wxTextPos to, const wxString& text) { wxTextCoord colStart, colEnd, lineStart, lineEnd; - // as convention, if `to` equal -1, it means go to the last position - if ( to == -1) + // as convention, ( src/gtk/textctrl.cpp:1411, src/msw/textctrl.cpp:759, + // test/controls/textentrytest.cpp:171 ) + // if `to` equal -1, it means go to the last position + if ( to == -1 ) to = GetLastPosition(); if ( (from > to) ||