AttributeStringArrayPtr aStringsAttr =
aData->stringArray(CollectionPlugin_Field::COMPONENTS_NAMES_ID());
- if (!aStringsAttr->isInitialized())
- return true;
-
myCompNamesList.clear();
for (int i = 0; i < aStringsAttr->size(); i++) {
myCompNamesList.append(aStringsAttr->value(i).c_str());
AttributeSelectionListPtr aSelList =
myFeature->data()->selectionList(CollectionPlugin_Field::SELECTED_ID());
aSelList->clear();
- aSelList->setSelectionType(getSelectionType(myShapeTypeCombo->currentIndex()));
ResultPtr aResult;
GeomShapePtr aShape;
AttributeSelectionListPtr aSelList =
myFeature->data()->selectionList(CollectionPlugin_Field::SELECTED_ID());
- if (!aSelList->isInitialized())
- return;
+
std::string aTypeName = getSelectionType(theType);
if (aTypeName == aSelList->selectionType())
return;
+ aSelList->setSelectionType(aTypeName);
//Clear old selection
clearData();