Salome HOME
52542: TC7.5.0: Hypothesis "Distribution of layers" is missed
authoreap <eap@opencascade.com>
Wed, 22 Oct 2014 12:37:33 +0000 (16:37 +0400)
committereap <eap@opencascade.com>
Wed, 22 Oct 2014 12:37:33 +0000 (16:37 +0400)
src/SMESHGUI/SMESHGUI_MeshOp.cxx
src/SMESHGUI/SMESHGUI_XmlHandler.cxx

index b54df5d96b79e9603a93199bf5a8500baf3053b8..151328f9bc524b40fbc381f5287ba8a3076ae156 100644 (file)
@@ -404,8 +404,8 @@ bool SMESHGUI_MeshOp::isSubshapeOk() const
 
 //================================================================================
 /*!
 
 //================================================================================
 /*!
- * \brief Return name of the algorithm that does not support submeshes and makes
- * submesh creation useless
+ * \brief Return name of the algorithm that does not support sub-meshes and makes
+ * sub-mesh creation useless
  *  \retval char* - string is to be deleted!!!
  */
 //================================================================================
  *  \retval char* - string is to be deleted!!!
  */
 //================================================================================
index db420a5650d0168df958ec770d345bfc61fac9b6..cb27cf9b421b3ff4b497bf2ee6cf3a14e549bf23 100644 (file)
@@ -161,8 +161,9 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&,
       for ( int i = 0; i < NB_ATTRIBUTES; ++i ) {
         QString aStr = atts.value( name[i] );
         if ( !aStr.isEmpty() ) {
       for ( int i = 0; i < NB_ATTRIBUTES; ++i ) {
         QString aStr = atts.value( name[i] );
         if ( !aStr.isEmpty() ) {
-          aStr = aStr.trimmed();
-          attr[ i ] = aStr.split( ',', QString::SkipEmptyParts );
+          attr[i] = aStr.split( ',', QString::SkipEmptyParts );
+          for ( int j = 0; j < attr[i].count(); ++j )
+            attr[i][j] = attr[i][j].trimmed();
         }
       }
 
         }
       }