]> SALOME platform Git repositories - plugins/hexoticplugin.git/commitdiff
Salome HOME
#18314 [CEA 18312] MG-Hexa hypothesis Construction: Hypothesis construction Local...
authoreap <eap@opencascade.com>
Fri, 15 Nov 2019 13:53:10 +0000 (16:53 +0300)
committereap <eap@opencascade.com>
Fri, 15 Nov 2019 13:53:10 +0000 (16:53 +0300)
src/GUI/HexoticPluginGUI_HypothesisCreator.cxx

index 2df61328da0b809f73f6f8eab160bd1279d542e7..2c6fa073134d8424284a2303ec3926c11130106b 100644 (file)
@@ -384,7 +384,7 @@ void HexoticPluginGUI_HypothesisCreator::onRemoveLocalSize()
 {
   // Remove the selected rows in the table
   QList<QTableWidgetSelectionRange> 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();