Salome HOME
projects
/
modules
/
yacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP
[modules/yacs.git]
/
src
/
hmi
/
guiObservers.cxx
diff --git
a/src/hmi/guiObservers.cxx
b/src/hmi/guiObservers.cxx
index bef6448a19fb140725dc0c3a651b5238242d570d..d8b053daf062e94da4fff637f690124acb186e9a 100644
(file)
--- a/
src/hmi/guiObservers.cxx
+++ b/
src/hmi/guiObservers.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2006-201
5
CEA/DEN, EDF R&D
+// Copyright (C) 2006-201
9
CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-824,6
+824,12
@@
bool SubjectNode::copy(Subject* parent)
YASSERT(cnp);
Proc *proc = GuiContext::getCurrent()->getProc();
Proc *fromproc=_node->getProc();
YASSERT(cnp);
Proc *proc = GuiContext::getCurrent()->getProc();
Proc *fromproc=_node->getProc();
+ if(proc != fromproc)
+ {
+ GuiContext::getCurrent()->_lastErrorMessage = "It is not possible to paste an object from one schema to another.";
+ DEBTRACE(GuiContext::getCurrent()->_lastErrorMessage);
+ return false;
+ }
string position = "";
if (fromproc != dynamic_cast<Proc*>(_node))
string position = "";
if (fromproc != dynamic_cast<Proc*>(_node))