From: azv Date: Thu, 16 Dec 2021 17:08:41 +0000 (+0300) Subject: bos #26805: regressions in tests X-Git-Tag: V9_9_0a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd173031e8ca28d60e04ddb3559e4bc5928fb859;p=modules%2Fshaper.git bos #26805: regressions in tests Revert several changes after #26446 --- diff --git a/src/ModelHighAPI/CMakeLists.txt b/src/ModelHighAPI/CMakeLists.txt index 07adac9db..2d7a4917f 100644 --- a/src/ModelHighAPI/CMakeLists.txt +++ b/src/ModelHighAPI/CMakeLists.txt @@ -58,7 +58,6 @@ SET(PROJECT_LIBRARIES Locale ModelAPI ModelGeomAlgo - ModuleBase ) ADD_DEFINITIONS(-DMODELHIGHAPI_EXPORTS -DWNT) @@ -88,7 +87,6 @@ INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src/Locale ${PROJECT_SOURCE_DIR}/src/ModelAPI ${PROJECT_SOURCE_DIR}/src/ModelGeomAlgo - ${PROJECT_SOURCE_DIR}/src/ModuleBase ${PROJECT_SOURCE_DIR}/src/PartSetPlugin ${OpenCASCADE_INCLUDE_DIR} ) diff --git a/src/ModelHighAPI/ModelHighAPI_Services.cpp b/src/ModelHighAPI/ModelHighAPI_Services.cpp index 763798c8b..09dea983c 100644 --- a/src/ModelHighAPI/ModelHighAPI_Services.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Services.cpp @@ -26,8 +26,6 @@ #include #include -#include - #include #include @@ -108,9 +106,8 @@ void begin() aNbTransactions = aNbUndo; ++aTransactionID; } - static std::string anOperationPrefix(ModuleBase_Tools::translate("", "Operation").toStdString()); std::ostringstream aTransactionName; - aTransactionName << anOperationPrefix << "_" << aTransactionID; + aTransactionName << "Operation_" << aTransactionID; ModelAPI_Session::get()->startOperation(aTransactionName.str()); }