ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/libs/LineNumberDisplay/LineNumberDisplay.cpp
(Generate patch)

Comparing Vago/trunk/Vago/libs/LineNumberDisplay/LineNumberDisplay.cpp (file contents):
Revision 1058 by s10k, Sun Oct 30 14:42:39 2016 UTC vs.
Revision 1059 by s10k, Sun Oct 30 16:01:17 2016 UTC

# 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)