瀏覽代碼

fix problems with formatted texts so that they do not have to contain 0 byte anymore

Kolja Strohm 6 月之前
父節點
當前提交
0a09159375
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      TextFeld.cpp

+ 1 - 1
TextFeld.cpp

@@ -613,7 +613,7 @@ void TextFeld::setFormattedText(const char* txt)
             tm->textStyle.add(current);
             break;
         case 6:
-            current.rendererIndex = (unsigned char)txt[++i];
+            current.rendererIndex = (unsigned char)(txt[++i] - 1);
             tm->textStyle.add(current);
             break;
         case 7: