From 6284a96122ff7015a9fff8f2842eb9d8a884f643 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 18 Nov 2016 12:54:29 +0300 Subject: [PATCH] Issue #1834: Fix length of lines --- src/FeaturesPlugin/FeaturesPlugin_Placement.cpp | 4 +++- src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp | 4 +++- src/FeaturesPlugin/FeaturesPlugin_Translation.cpp | 4 +++- src/Model/Model_SelectionNaming.cpp | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp b/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp index c33514085..0ffb26ed7 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp @@ -197,5 +197,7 @@ void FeaturesPlugin_Placement::loadNamingDS(GeomAlgoAPI_Transform& theTransformA std::string aPlacedName = "Placed"; std::shared_ptr aSubShapes = theTransformAlgo.mapOfSubShapes(); - FeaturesPlugin_Tools::storeModifiedShapes(theTransformAlgo, theResultBody, theBaseShape, aPlacedTag, aPlacedName, *aSubShapes.get()); + FeaturesPlugin_Tools::storeModifiedShapes(theTransformAlgo, theResultBody, + theBaseShape, aPlacedTag, aPlacedName, + *aSubShapes.get()); } diff --git a/src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp b/src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp index ac2c10ca0..614264603 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp @@ -132,5 +132,7 @@ void FeaturesPlugin_Rotation::loadNamingDS(GeomAlgoAPI_Rotation& theRotaionAlgo, std::string aRotatedName = "Rotated"; std::shared_ptr aSubShapes = theRotaionAlgo.mapOfSubShapes(); - FeaturesPlugin_Tools::storeModifiedShapes(theRotaionAlgo, theResultBody, theBaseShape, aRotatedTag, aRotatedName, *aSubShapes.get()); + FeaturesPlugin_Tools::storeModifiedShapes(theRotaionAlgo, theResultBody, + theBaseShape, aRotatedTag, aRotatedName, + *aSubShapes.get()); } diff --git a/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp b/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp index dea6df9f4..e9e337f18 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp @@ -136,5 +136,7 @@ void FeaturesPlugin_Translation::loadNamingDS(GeomAlgoAPI_Translation& theTransl std::string aTranslatedName = "Translated"; std::shared_ptr aSubShapes = theTranslationAlgo.mapOfSubShapes(); - FeaturesPlugin_Tools::storeModifiedShapes(theTranslationAlgo, theResultBody, theBaseShape, aTranslatedTag, aTranslatedName, *aSubShapes.get()); + FeaturesPlugin_Tools::storeModifiedShapes(theTranslationAlgo, theResultBody, + theBaseShape, aTranslatedTag, aTranslatedName, + *aSubShapes.get()); } diff --git a/src/Model/Model_SelectionNaming.cpp b/src/Model/Model_SelectionNaming.cpp index bc88078c6..47b530460 100644 --- a/src/Model/Model_SelectionNaming.cpp +++ b/src/Model/Model_SelectionNaming.cpp @@ -74,7 +74,8 @@ std::string Model_SelectionNaming::getShapeName( static const std::string aPostFix("_"); TNaming_Iterator anItL(aNS); for(int i = 1; anItL.More(); anItL.Next(), i++) { - if(anItL.NewShape().IsSame(theShape)) { // in #1766 IsEqual produced no index of the face + // in #1766 IsEqual produced no index of the face + if(anItL.NewShape().IsSame(theShape)) { aName += aPostFix; aName += TCollection_AsciiString (i).ToCString(); break; -- 2.39.2