Mercurial > octave
changeset 28576:1afdc349b883
fix error in previous change (QMatrix -> QTransform)
* TerminalView.cpp: QPainter::transform returns a QTransform object,
not a QMatrix object, and calling inverted on that also returns a
QTransform object.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 14 Jul 2020 01:09:31 -0400 |
parents | dee4d6f1adc7 |
children | 5c6b4cbd417f |
files | libgui/qterminal/libqterminal/unix/TerminalView.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/unix/TerminalView.cpp Tue Jul 14 01:00:54 2020 -0400 +++ b/libgui/qterminal/libqterminal/unix/TerminalView.cpp Tue Jul 14 01:09:31 2020 -0400 @@ -1236,7 +1236,7 @@ // transformation has been applied to the painter. this ensures that // painting does actually start from textArea.topLeft() // (instead of textArea.topLeft() * painter-scale) - QMatrix inverted = paint.transform().inverted(); + QTransform inverted = paint.transform().inverted(); textArea.moveCenter( inverted.map(textArea.center()) );