From 04bc3f817a17faeb62b676bd36f7b092fca311f4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 16 Feb 2019 14:10:37 +0100 Subject: [PATCH] fixes 0003840: Sketcher WB: units not completely hidden --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 9520780a46..5b14ead490 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -5193,7 +5193,9 @@ Restart: SbVec3f p2(pnt2.x,pnt2.y,zConstr); SoDatumLabel *asciiText = static_cast(sep->getChild(CONSTRAINT_SEPARATOR_INDEX_MATERIAL_OR_DATUMLABEL)); - asciiText->string = SbString(Constr->getPresentationValue().getUserString().toUtf8().constData()); + + // Get display string with units hidden if so requested + asciiText->string = SbString( getPresentationString(Constr).toUtf8().constData() ); asciiText->datumtype = SoDatumLabel::RADIUS; asciiText->param1 = Constr->LabelDistance;