diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-11-30 17:35:55 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-11-30 17:35:55 +0200 |
commit | 526985d6e57a1d58a97495c84b4cff814b81af3a (patch) | |
tree | fec721bf922412cd3b9e889f132954cd97a008aa /qt-ui | |
parent | d439d381ca59a63dc036409cfe1d157b916cb995 (diff) | |
download | subsurface-526985d6e57a1d58a97495c84b4cff814b81af3a.tar.gz |
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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 7aa164723..b4b24b266 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -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); } |