Fix: last line was clipped when the size was not multiple of the fontsize.
This commit is contained in:
parent
67055633bd
commit
98daa802c3
@ -1598,7 +1598,7 @@ void KTerminalDisplay::calcGeometry()
|
|||||||
_usedColumns = qMin(_usedColumns,_columns);
|
_usedColumns = qMin(_usedColumns,_columns);
|
||||||
|
|
||||||
// ensure that display is always at least one line high
|
// ensure that display is always at least one line high
|
||||||
_lines = qMax(1, qRound(_contentHeight / (double)_fontHeight));
|
_lines = qMax(1, qFloor(_contentHeight / (double)_fontHeight));
|
||||||
_usedLines = qMin(_usedLines,_lines);
|
_usedLines = qMin(_usedLines,_lines);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user