From: eap Date: Fri, 15 Nov 2019 13:55:07 +0000 (+0300) Subject: #18314 [CEA 18312] MG-Hexa hypothesis Construction: Hypothesis construction Local... X-Git-Tag: V9_4_0rc2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=33d796893bca73ff0d7e3c22f1503847311df47e;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..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();