mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Print: fix missing vertical line at the last column
There was a line missing in the right-most column wrapping the table for the profile print. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
d439d381ca
commit
526985d6e5
1 changed files with 4 additions and 1 deletions
|
@ -335,7 +335,10 @@ void ProfilePrintDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
|||
if (row == 7)
|
||||
painter->drawLine(rect.bottomLeft(), rect.bottomRight());
|
||||
// vertical lines
|
||||
if (row > 1)
|
||||
if (row > 1) {
|
||||
painter->drawLine(rect.topLeft(), rect.bottomLeft());
|
||||
if (col == 4 || (col == 0 && row > 5))
|
||||
painter->drawLine(rect.topRight(), rect.bottomRight());
|
||||
}
|
||||
QStyledItemDelegate::paint(painter, option, index);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue