From e9456ead368e385c4049e8ebfb180a364ebc8ebe Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 Nov 2019 16:53:10 +0300 Subject: [PATCH] #18314 [CEA 18312] MG-Hexa hypothesis Construction: Hypothesis construction Local size --- src/GUI/HexoticPluginGUI_HypothesisCreator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx b/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx index 2df6132..2c6fa07 100644 --- a/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx @@ -384,7 +384,7 @@ void HexoticPluginGUI_HypothesisCreator::onRemoveLocalSize() { // Remove the selected rows in the table QList ranges = mySmpWidget->tableWidget->selectedRanges(); - if ( ranges.isEmpty() ) // If none is selected remove the last one + if ( ranges.isEmpty() && mySmpWidget->tableWidget->rowCount() > 0) // If none is selected remove the last one { int lastRow = mySmpWidget->tableWidget->rowCount() - 1; std::string entry = mySmpWidget->tableWidget->item( lastRow, ENTRY_COL )->text().toStdString(); -- 2.39.2