Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b712c05
)
0021180: EDF 1772 SMESH: Set of hypothesis in 1D
author
vsr
<vsr@opencascade.com>
Thu, 10 Feb 2011 13:09:43 +0000
(13:09 +0000)
committer
vsr
<vsr@opencascade.com>
Thu, 10 Feb 2011 13:09:43 +0000
(13:09 +0000)
Additional change: enable tabs if no shape is selected
src/SMESHGUI/SMESHGUI_MeshOp.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_MeshOp.cxx
b/src/SMESHGUI/SMESHGUI_MeshOp.cxx
index 48806273dc28b53edc80c7b25ad8a62c844ea592..1e314d04557ddd4df5d07da3fab159c9d6e9889d 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_MeshOp.cxx
+++ b/
src/SMESHGUI/SMESHGUI_MeshOp.cxx
@@
-474,7
+474,7
@@
void SMESHGUI_MeshOp::selectionDone()
{
// Enable tabs according to shape dimension
- int shapeDim =
-1
;
+ int shapeDim =
3
;
QStringList aGEOMs;
myDlg->selectedObject(SMESHGUI_MeshDlg::Geom, aGEOMs);
@@
-504,7
+504,7
@@
void SMESHGUI_MeshOp::selectionDone()
}
if (aSeq->length() > 0) {
-
//shapeDim = 0
;
+
shapeDim = -1
;
for (int iss = 0; iss < aSeq->length() && shapeDim < 3; iss++) {
GEOM::GEOM_Object_var aGeomVar = aSeq[iss];
switch ( aGeomVar->GetShapeType() ) {