From 33d796893bca73ff0d7e3c22f1503847311df47e Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 Nov 2019 16:55:07 +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..83ed5f4 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.30.2