]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #236: Avoid empty shape types definition
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 7 Nov 2014 12:31:08 +0000 (15:31 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 7 Nov 2014 12:31:08 +0000 (15:31 +0300)
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); 
 }