diff --git a/src/editor/leftareaoftextedit.cpp b/src/editor/leftareaoftextedit.cpp index 36ff6fac..313061b7 100644 --- a/src/editor/leftareaoftextedit.cpp +++ b/src/editor/leftareaoftextedit.cpp @@ -61,7 +61,7 @@ int LeftAreaTextEdit::lineNumberAreaWidth() } qCDebug(appLog) << "LeftAreaTextEdit lineNumberAreaWidth return"; - return 13 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits + 40; + return m_pTextEdit->lineNumberAreaWidth(); }