diff --git a/src/Mod/Path/App/FeaturePathCompound.cpp b/src/Mod/Path/App/FeaturePathCompound.cpp index 1b3740f547..1c66ce14f2 100644 --- a/src/Mod/Path/App/FeaturePathCompound.cpp +++ b/src/Mod/Path/App/FeaturePathCompound.cpp @@ -64,10 +64,12 @@ App::DocumentObjectExecReturn *FeatureCompound::execute(void) result.addCommand(**it2); } } - }else + } else { return new App::DocumentObjectExecReturn("Not all objects in group are paths!"); + } } + result.setCenter(Path.getValue().getCenter()); Path.setValue(result); return App::DocumentObject::StdReturn;