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
(from parent 1:
39b12db
)
#18314 [CEA 18312] MG-Hexa hypothesis Construction: Hypothesis construction Local...
V9_4_BR
occ/fixes_for_940
V9_4_0
V9_4_0rc2
V9_4_0rc3
author
eap
<eap@opencascade.com>
Fri, 15 Nov 2019 13:55:07 +0000
(16:55 +0300)
committer
eap
<eap@opencascade.com>
Fri, 15 Nov 2019 13:55:07 +0000
(16:55 +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..83ed5f44d29a8b4d56dbb6cd3f763ee2168a5299 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();