From add89bac1934e88f341219fa1cf237fe92fe9883 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 22 Oct 2014 16:37:33 +0400 Subject: [PATCH] 52542: TC7.5.0: Hypothesis "Distribution of layers" is missed --- src/SMESHGUI/SMESHGUI_MeshOp.cxx | 4 ++-- src/SMESHGUI/SMESHGUI_XmlHandler.cxx | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index b54df5d96..151328f9b 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -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!!! */ //================================================================================ diff --git a/src/SMESHGUI/SMESHGUI_XmlHandler.cxx b/src/SMESHGUI/SMESHGUI_XmlHandler.cxx index db420a565..cb27cf9b4 100644 --- a/src/SMESHGUI/SMESHGUI_XmlHandler.cxx +++ b/src/SMESHGUI/SMESHGUI_XmlHandler.cxx @@ -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() ) { - 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(); } } -- 2.39.2