From 32c62191d791de6be1ef54a91ab140d960705f29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 15 Jun 2006 23:21:28 +0000 Subject: [PATCH] Final fix for Bug #1472688 'wxString::Trim() is broken' git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/string.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/string.cpp b/src/common/string.cpp index 0a70d793a8..99bb5a55a3 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1618,7 +1618,7 @@ wxString& wxString::Trim(bool bFromRight) { // find last non-space character reverse_iterator psz = rbegin(); - while ( wxSafeIsspace(*psz) && (psz != rend()) ) + while ( (psz != rend()) && wxSafeIsspace(*psz) ) psz++; // truncate at trailing space start @@ -1628,7 +1628,7 @@ wxString& wxString::Trim(bool bFromRight) { // find first non-space character iterator psz = begin(); - while ( wxSafeIsspace(*psz) && (psz != end()) ) + while ( (psz != end()) && wxSafeIsspace(*psz) ) psz++; // fix up data and length -- 2.45.2