diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerScale.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerScale.h index c1f33edcbb..a0f26c1e1f 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerScale.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerScale.h @@ -488,6 +488,12 @@ private: newConstr->Second = secondIndex; newConstr->setValue(newConstr->getValue() * scaleFactor); } + else if ((cstr->Type == Distance || cstr->Type == DistanceX + || cstr->Type == DistanceY) + && firstIndex != GeoEnum::GeoUndef && cstr->Second == GeoEnum::GeoUndef) { + newConstr->First = firstIndex; + newConstr->setValue(newConstr->getValue() * scaleFactor); + } else if ((cstr->Type == Block || cstr->Type == Weight) && firstIndex != GeoEnum::GeoUndef) { newConstr->First = firstIndex; diff --git a/src/Mod/Sketcher/Gui/EditDatumDialog.cpp b/src/Mod/Sketcher/Gui/EditDatumDialog.cpp index 6f2da69e58..4a8f651852 100644 --- a/src/Mod/Sketcher/Gui/EditDatumDialog.cpp +++ b/src/Mod/Sketcher/Gui/EditDatumDialog.cpp @@ -426,7 +426,6 @@ void EditDatumDialog::performAutoScale(double newDatum) // might change index ConstrNbr = sketch->getSingleScaleDefiningConstraint(); - sketch->setLabelDistance(ConstrNbr, initLabelDistance * scaleFactor); // Label position or radii and diameters represent an angle, so