Commit cf6aa4c8 authored by Michael Reeves's avatar Michael Reeves

Don't cut off text at view port boundary

The width of the scroll rect should always be the width of the widget that is being scrolled.

BUG:399070
FIXED-IN:1.8.2
parent 0da64bc3
Pipeline #15338 passed with stage
in 7 minutes and 25 seconds
......@@ -296,12 +296,12 @@ void DiffTextWindow::setHorizScrollOffset(int horizScrollOffset)
d->m_horizScrollOffset = std::max(0, horizScrollOffset);
QRect r(xOffset, 0, width() - xOffset, height());
QRect r(xOffset, 0, width(), height());
if(d->m_pOptions->m_bRightToLeftLanguage)
{
deltaX = -deltaX;
r = QRect(width() - xOffset - 2, 0, -(width() - xOffset), height()).normalized();
r = QRect(width() - xOffset - 2, 0, -(width()), height()).normalized();
}
if(d->m_bSelectionInProgress && d->m_selection.isValidFirstLine())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment