Salome HOME
Issue #236: Avoid empty shape types definition
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetShapeSelector.cpp
index caf3e0b4dbd3eeac604d7474afd90fde90c9475b..86f7a3471d935804915ccdb23045586cee2abd45 100644 (file)
@@ -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); 
 }