From: jfa Date: Mon, 14 Aug 2006 10:56:37 +0000 (+0000) Subject: PAL13021: EDF233 VISU Wrong orientation of a bar. X-Git-Tag: For_OCT_611~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e86c3ba8b5d9bbd7d9619bd89e9448317a77c814;p=modules%2Fvisu.git PAL13021: EDF233 VISU Wrong orientation of a bar. --- 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")