Permalink
Browse files

CharsetConverter: fix: don't flip empty lines

  • Loading branch information...
1 parent 5aef1c5 commit d273c32467651741033549ff2e4700232ed1a066 @Karlson2k Karlson2k committed Sep 23, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/utils/CharsetConverter.cpp
@@ -299,6 +299,8 @@ static bool logicalToVisualBiDi(const std::string& stringSrc, std::string& strin
for (size_t i = 0; i < numLines; i++)
{
int sourceLen = lines[i].length();
+ if (sourceLen == 0)
+ continue;
// Convert from the selected charset to Unicode
FriBidiChar* logical = (FriBidiChar*) malloc((sourceLen + 1) * sizeof(FriBidiChar));

0 comments on commit d273c32

Please sign in to comment.