Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Task #3230: Sketcher: create a curve passing through selected points or vertices...
[modules/shaper.git]
/
src
/
ParametersPlugin
/
ParametersPlugin_Parameter.cpp
diff --git
a/src/ParametersPlugin/ParametersPlugin_Parameter.cpp
b/src/ParametersPlugin/ParametersPlugin_Parameter.cpp
index ab128d10b10b83c16f0809eda0fb81206001f9c2..b49507befdee9afa4efdd78ace80d44682e8c243 100644
(file)
--- a/
src/ParametersPlugin/ParametersPlugin_Parameter.cpp
+++ b/
src/ParametersPlugin/ParametersPlugin_Parameter.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-201
7
CEA/DEN, EDF R&D
+// Copyright (C) 2014-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
@@
-12,10
+12,9
@@
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
//
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include <pyconfig.h>
//
#include <pyconfig.h>
@@
-75,11
+74,11
@@
void ParametersPlugin_Parameter::attributeChanged(const std::string& theID)
void ParametersPlugin_Parameter::updateName()
{
std::string aName = string(VARIABLE_ID())->value();
void ParametersPlugin_Parameter::updateName()
{
std::string aName = string(VARIABLE_ID())->value();
- data()->setName(
aName
);
+ data()->setName(
ModelAPI_Tools::toWString(aName)
);
ResultParameterPtr aParam = document()->createParameter(data());
ResultParameterPtr aParam = document()->createParameter(data());
- std::string anOldName =
aParam->data()->name(
);
- aParam->data()->setName(
aName
);
+ std::string anOldName =
ModelAPI_Tools::toString(aParam->data()->name()
);
+ aParam->data()->setName(
ModelAPI_Tools::toWString(aName)
);
setResult(aParam);
setResult(aParam);