From e86c3ba8b5d9bbd7d9619bd89e9448317a77c814 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 14 Aug 2006 10:56:37 +0000 Subject: [PATCH] PAL13021: EDF233 VISU Wrong orientation of a bar. --- src/CONVERTOR/VISU_Convertor_impl.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 56c50bbb..174a0baf 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -1108,7 +1108,9 @@ namespace int aMeshDimension = theMesh->myDim; bool anIsDimPresent[3] = {false, false, false}; for(int iDim = 0; iDim < aMeshDimension; iDim++){ - const std::string& aName = aCoords.GetName(iDim); + std::string aName = aCoords.GetName(iDim); + if ( aName.size() > 1 ) // PAL13021 (PAL12148), aName has size 8 or 16 + aName = aName.substr(0,1); if(aName == "x" || aName == "X") anIsDimPresent[eX] = true; else if(aName == "y" || aName == "Y") -- 2.39.2