Salome HOME
added test for bos#34658
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_MultiRotation.cpp
index 44bbd0b2babe8148faad268be341162bc94c34f6..cb00985a23620e4142c30a54c52517615a5d2a8c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2017-2022  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
@@ -156,12 +156,12 @@ MultiRotationPtr addMultiRotation(const std::shared_ptr<ModelAPI_Document>& theP
   if (theNumber.string().empty()) {
     // rotate for the whole circle
     double aStepVal = theStep.value();
-    std::string aStepStr = theStep.string();
-    std::ostringstream aStepValAsStr;
+    std::wstring aStepStr = theStep.string();
+    std::wostringstream aStepValAsStr;
     aStepValAsStr << aStepVal;
 
     ModelHighAPI_Integer aNumber = aStepStr == aStepValAsStr.str()
-                                 ? ModelHighAPI_Integer(aStepVal)
+                                 ? ModelHighAPI_Integer((int)aStepVal)
                                  : ModelHighAPI_Integer(aStepStr);
     aResult.reset(new FeaturesAPI_MultiRotation(aFeature, theMainObjects, theAxis, aNumber));
   }