From: eap Date: Fri, 15 Nov 2019 13:53:10 +0000 (+0300) Subject: #18314 [CEA 18312] MG-Hexa hypothesis Construction: Hypothesis construction Local... X-Git-Tag: V9_5_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9456ead368e385c4049e8ebfb180a364ebc8ebe;p=plugins%2Fhexoticplugin.git #18314 [CEA 18312] MG-Hexa hypothesis Construction: Hypothesis construction Local size --- 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();