]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.cpp
Typos.
[lyx.git] / src / ParagraphMetrics.cpp
index 1e4410644c4c67ab22e1e096af5d0b307b9c79b1..15ed5f5d026b3f16c2906c465cf9d313531d792a 100644 (file)
@@ -220,6 +220,9 @@ int ParagraphMetrics::singleWidth(pos_type pos, Font const & font) const
 
        char_type c = par_->getChar(pos);
 
+       if (c == '\t')
+               return 4 * theFontMetrics(font).width(' ');
+       
        if (!isPrintable(c))
                return theFontMetrics(font).width(c);