diff --git a/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp b/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp index 915f0f30f8..2b6f7a8f4a 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp @@ -357,7 +357,7 @@ SbBox3f ViewProviderDatum::getRelevantBoundBox () const { SbBox3f ViewProviderDatum::getRelevantBoundBox ( SoGetBoundingBoxAction &bboxAction, const std::vector &objs ) { - SbBox3f bbox(0,0,0, 0,0,0); + SbBox3f bbox = defaultBoundBox(); // Adds the bbox of given feature to the output for (auto obj :objs) { @@ -380,6 +380,7 @@ SbBox3f ViewProviderDatum::getRelevantBoundBox ( } } + // TODO: shrink bbox when all other elements are too small return bbox; }