mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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)
|
if (row == 7)
|
||||||
painter->drawLine(rect.bottomLeft(), rect.bottomRight());
|
painter->drawLine(rect.bottomLeft(), rect.bottomRight());
|
||||||
// vertical lines
|
// vertical lines
|
||||||
if (row > 1)
|
if (row > 1) {
|
||||||
painter->drawLine(rect.topLeft(), rect.bottomLeft());
|
painter->drawLine(rect.topLeft(), rect.bottomLeft());
|
||||||
|
if (col == 4 || (col == 0 && row > 5))
|
||||||
|
painter->drawLine(rect.topRight(), rect.bottomRight());
|
||||||
|
}
|
||||||
QStyledItemDelegate::paint(painter, option, index);
|
QStyledItemDelegate::paint(painter, option, index);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue