When selecting a feature, the context is a Feature and not a Result.
Therefore, the result pointer is NULL and causes a SIGSEGV on Linux.
On Windows, the exception is caught in Model_Update::executeFeature().
getAttributes(*aResult, anAttrs);
exportShape(*aShape, anAttrs, GeomShapePtr(), aNullLab);
}
- else { // whole result selection
+ else if (aResult->get()) { // whole result selection
putResult(*aResult, GeomShapePtr(), aNullLab, anAttrs);
}
+ else { // feature selection => export simple shape
+ exportShape(*aShape, anAttrs, GeomShapePtr(), aNullLab);
+ }
}
// store the XCAF document to STEP file
try {