| # | Line 110 | Line 110 | void LineNumberDisplay::updateLineNumber | |
|---|---|---|
| 110 | setPlainText(aux); | |
| 111 | ||
| 112 | QFontMetrics fm(d_text_edit->currentFont(), this); | |
| 113 | < | setMaximumWidth(2*fm.boundingRect(QString::number(lines)).width()); |
| 113 | > | setMaximumWidth(2.5*fm.boundingRect(QString::number(lines)).width()); // 2.5 small fix to display numbers correctly on macos |
| 114 | verticalScrollBar()->setValue(d_text_edit->verticalScrollBar()->value()); | |
| 115 | } | |
| 116 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |