From: vsv Date: Fri, 7 Nov 2014 12:31:08 +0000 (+0300) Subject: Issue #236: Avoid empty shape types definition X-Git-Tag: V_0.5~16^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=28c90c232ffe159b88edd156286a398bfa3bb73b;p=modules%2Fshaper.git Issue #236: Avoid empty shape types definition --- diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp index caf3e0b4d..86f7a3471 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp @@ -109,10 +109,10 @@ ModuleBase_WidgetShapeSelector::ModuleBase_WidgetShapeSelector(QWidget* theParen aLayout->addWidget(myTextLine, 1); std::string aTypes = theData->getProperty("shape_types"); - myShapeTypes = QString(aTypes.c_str()).split(' '); + myShapeTypes = QString(aTypes.c_str()).split(' ', QString::SkipEmptyParts); std::string aObjTypes = theData->getProperty("object_types"); - myObjectTypes = QString(aObjTypes.c_str()).split(' '); + myObjectTypes = QString(aObjTypes.c_str()).split(' ', QString::SkipEmptyParts); myUseSubShapes = theData->getBooleanAttribute("use_subshapes", false); }