]> git.lyx.org Git - features.git/blobdiff - src/insets/insetquotes.C
fix drawing of double quotes; fix input of cyrillic and greek characters
[features.git] / src / insets / insetquotes.C
index f001179ae9e4f3ba608a6a8109fe51133cdf25d2..fef7fa9ff10aa6c07546b0779988bb9d84b9aad9 100644 (file)
@@ -232,7 +232,12 @@ void InsetQuotes::draw(BufferView * bv, LyXFont const & font,
 {
        string const text = dispString(font.language());
 
-       bv->painter().text(int(x), baseline, text, font);
+       if (text.length() == 2 && text[0] == text[1]) {
+               bv->painter().text(int(x), baseline, text[0], font);
+               int x2 = int(x + lyxfont::width(',', font));
+               bv->painter().text(x2, baseline, text[0], font);
+       } else
+               bv->painter().text(int(x), baseline, text, font);
        x += width(bv, font);
 }