]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / paragraph.C
index 7b9ca795fce7b2dc7c50390c25450fccfe64af6b..47ced728e299f56cf12058cb4e98cb7ee75f25cb 100644 (file)
@@ -1816,11 +1816,11 @@ unsigned char Paragraph::transformChar(unsigned char c, pos_type pos) const
                else
                        return c;
 
-       unsigned char const prev_char = pos > 0 ? getChar(pos - 1) : ' ';
-       unsigned char next_char = ' ';
+       value_type const prev_char = pos > 0 ? getChar(pos - 1) : ' ';
+       value_type next_char = ' ';
 
        for (pos_type i = pos + 1, end = size(); i < end; ++i) {
-               unsigned char const par_char = getChar(i);
+               value_type const par_char = getChar(i);
                if (!Encodings::isComposeChar_arabic(par_char)) {
                        next_char = par_char;
                        break;