MAINT-7488 FIXED [Windows] Viewer crashes when pasting empty string from clipboard

Mnikolenko Productengine 2017-06-16 17:46:12 +03:00
parent de41e434d1
commit eeddfe3a25
1 changed files with 4 additions and 0 deletions

View File

@ -1330,6 +1330,10 @@ void LLStringUtilBase<T>::removeCRLF(string_type& string)
template<class T>
void LLStringUtilBase<T>::removeWindowsCR(string_type& string)
{
if (string.empty())
{
return;
}
const T LF = 10;
const T CR = 13;