Commit 4ee7e302 authored by Robert Knight's avatar Robert Knight
Browse files

Fix left edge of display being filled with the scrollbar's background color if...

Fix left edge of display being filled with the scrollbar's background color if the scrollbar is hidden.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=742434
parent 7dcf89b6
......@@ -538,7 +538,9 @@ void TerminalDisplay::drawBackground(QPainter& painter, const QRect& rect, const
// being outside of the terminal display and visual consistency with other KDE
// applications.
//
QRect scrollBarArea = rect.intersected(_scrollBar->geometry());
QRect scrollBarArea = _scrollBar->isVisible() ?
rect.intersected(_scrollBar->geometry()) :
QRect();
QRegion contentsRegion = QRegion(rect).subtracted(scrollBarArea);
QRect contentsRect = contentsRegion.boundingRect();
......
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