From 5eb6f6799eb2341c77fa55663445f381aff6823f Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 13 Jan 2016 16:12:08 +0100 Subject: [PATCH] Try to make it more robust. --- src/modules/partition/gui/PartitionSplitterWidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/PartitionSplitterWidget.cpp b/src/modules/partition/gui/PartitionSplitterWidget.cpp index f35bbfc4b..601f5ba2b 100644 --- a/src/modules/partition/gui/PartitionSplitterWidget.cpp +++ b/src/modules/partition/gui/PartitionSplitterWidget.cpp @@ -476,13 +476,16 @@ PartitionSplitterWidget::drawPartitions( QPainter* painter, } if ( m_itemToResize && - item.itemPath == m_itemToResize->itemPath ) - m_resizeHandleX = x + width; + m_itemToResizeNext && + items[ row - 1 ] == m_itemToResize->itemPath ) + m_resizeHandleX = x; x += width; } if ( m_itemToResize && m_itemToResizeNext ) + { drawResizeHandle( painter, rect, m_resizeHandleX ); + } }