Salome HOME
projects
/
plugins
/
hexoticplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2382320
)
#18314 [CEA 18312] MG-Hexa hypothesis Construction: Hypothesis construction Local...
author
eap
<eap@opencascade.com>
Fri, 15 Nov 2019 13:53:10 +0000
(16:53 +0300)
committer
eap
<eap@opencascade.com>
Fri, 15 Nov 2019 13:53:10 +0000
(16:53 +0300)
src/GUI/HexoticPluginGUI_HypothesisCreator.cxx
patch
|
blob
|
history
diff --git
a/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx
b/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx
index 2df61328da0b809f73f6f8eab160bd1279d542e7..2c6fa073134d8424284a2303ec3926c11130106b 100644
(file)
--- 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<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();