OSDN Git Service

fix HexConfig::charWidth
authorsuma <devnull@localhost>
Wed, 11 Feb 2009 04:38:25 +0000 (13:38 +0900)
committersuma <devnull@localhost>
Wed, 11 Feb 2009 04:38:25 +0000 (13:38 +0900)
src/control/standard/hexview.h

index 747180b..5a21781 100644 (file)
@@ -40,7 +40,7 @@ namespace Standard {
                }
                inline int charWidth(int num = 1) const
                {
-                       return FontMetrics.maxWidth() * num;
+                       return FontMetrics.width(QChar('A')) * num;
                }
                inline int charHeight() const
                {