FListView sort bug fix for negative numbers

This commit is contained in:
Markus Gans 2018-09-28 06:53:27 +02:00
parent 851e3db49c
commit 8ea63da899
1 changed files with 5 additions and 0 deletions

View File

@ -54,7 +54,12 @@ long firstNumberFromString (const FString& str)
while ( iter != last ) while ( iter != last )
{ {
if ( wchar_t(*iter) >= L'0' && wchar_t(*iter) <= L'9' ) if ( wchar_t(*iter) >= L'0' && wchar_t(*iter) <= L'9' )
{
if ( wchar_t(*(iter - 1)) == L'-' )
--iter;
break; break;
}
++iter; ++iter;
} }