fixed rtl mixed support mode so that words are properly placed in the sentence

This commit is contained in:
Mark Vejvoda 2013-11-14 22:19:40 +00:00
parent f0737ac682
commit 429db5ff66
1 changed files with 7 additions and 2 deletions

View File

@ -404,9 +404,14 @@ void Font::bidi_cvt(string &str_) {
//printf("Line: %d [%s]\n",lineIndex,str_.c_str());
vector<string> words;
if(str_.find(" ") != str_.npos) {
Tokenize(str_,words," ");
if(Font::fontSupportMixedRightToLeft == true) {
if(str_.find(" ") != str_.npos) {
Tokenize(str_,words," ");
}
else {
words.push_back(str_);
}
}
else {
words.push_back(str_);