Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #562: basic logic for Strickler table operation and dialog.
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_TranslateObstacleOp.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx
b/src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx
index 52d77571689f3a75bc4ed74fcdd815d7dbfcdb4a..11104c0b00f5c19e18dfa7771336e836c674b700 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx
+++ b/
src/HYDROGUI/HYDROGUI_TranslateObstacleOp.cxx
@@
-59,7
+59,8
@@
void HYDROGUI_TranslateObstacleOp::startOperation()
aPanel->reset();
// Get the edited object
aPanel->reset();
// Get the edited object
- myEditedObject = Handle(HYDROData_Obstacle)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) );
+ if ( isApplyAndClose() )
+ myEditedObject = Handle(HYDROData_Obstacle)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) );
if ( myEditedObject.IsNull() ) {
abort();
return;
if ( myEditedObject.IsNull() ) {
abort();
return;