+ if (aShape.get()) {
+ aValid = aShapePtr.get() != NULL && aShapePtr->isEqual(aShape);
+ }
+ else {
+ // an empty shape is used in attribute selection if the shape of the result is equal to
+ // the selected shape, so according to the upper condifition, the result is true
+ aValid = true;
+ }