Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NPAL17269: Performance pb. when creating a group with GUI.
[modules/geom.git]
/
src
/
GEOMGUI
/
GEOMGUI_Selection.cxx
diff --git
a/src/GEOMGUI/GEOMGUI_Selection.cxx
b/src/GEOMGUI/GEOMGUI_Selection.cxx
index 7af013b20b3ebd1c29c335a75a03ba837e148131..029e8922a080e14c14e832cd475b2a8af7a81f99 100644
(file)
--- a/
src/GEOMGUI/GEOMGUI_Selection.cxx
+++ b/
src/GEOMGUI/GEOMGUI_Selection.cxx
@@
-205,14
+205,14
@@
GEOM::GEOM_Object_ptr GEOMGUI_Selection::getObject( const int index ) const
return GEOM::GEOM_Object::_nil();
}
return GEOM::GEOM_Object::_nil();
}
-QString GEOMGUI_Selection::
selectionMode() const
-{
+QString GEOMGUI_Selection::selectionMode() const
+{
SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
if (app) {
GeometryGUI* aGeomGUI = dynamic_cast<GeometryGUI*>( app->module( "Geometry" ) );
SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
if (app) {
GeometryGUI* aGeomGUI = dynamic_cast<GeometryGUI*>( app->module( "Geometry" ) );
- if
(aGeomGUI)
- switch(aGeomGUI->getLocalSelectionMode())
-
{
+ if
(aGeomGUI) {
+ switch
(aGeomGUI->getLocalSelectionMode())
+ {
case GEOM_POINT : return "VERTEX";
case GEOM_EDGE : return "EDGE";
case GEOM_WIRE : return "WIRE";
case GEOM_POINT : return "VERTEX";
case GEOM_EDGE : return "EDGE";
case GEOM_WIRE : return "WIRE";
@@
-222,6
+222,8
@@
QString GEOMGUI_Selection:: selectionMode() const
case GEOM_COMPOUND : return "COMPOUND";
case GEOM_ALLOBJECTS : return "ALL";
default: return "";
case GEOM_COMPOUND : return "COMPOUND";
case GEOM_ALLOBJECTS : return "ALL";
default: return "";
- }
+ }
+ }
}
}
+ return "";
}
}