From 28c90c232ffe159b88edd156286a398bfa3bb73b Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 7 Nov 2014 15:31:08 +0300 Subject: [PATCH] Issue #236: Avoid empty shape types definition --- src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2