From d6de5be8d0dbc9f6d6ee47f9040b650c75a82b9e Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 22 Feb 2016 15:51:26 +0100 Subject: [PATCH] Don't segfault on free space in Splitter widget. --- src/modules/partition/gui/PartitionSplitterWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/partition/gui/PartitionSplitterWidget.cpp b/src/modules/partition/gui/PartitionSplitterWidget.cpp index 14dc75da8..cbc726ac4 100644 --- a/src/modules/partition/gui/PartitionSplitterWidget.cpp +++ b/src/modules/partition/gui/PartitionSplitterWidget.cpp @@ -487,6 +487,8 @@ PartitionSplitterWidget::drawPartitions( QPainter* painter, if ( m_itemToResize && m_itemToResizeNext && row > 0 && + !items[ row - 1 ].isFreeSpace && + !items[ row - 1 ].itemPath.isEmpty() && items[ row - 1 ].itemPath == m_itemToResize->itemPath ) { m_resizeHandleX = x;