Skip to content

Commit

Permalink
fixes 0003840: Sketcher WB: units not completely hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 16, 2019
1 parent 645b397 commit 04bc3f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
Expand Up @@ -5193,7 +5193,9 @@ void ViewProviderSketch::draw(bool temp /*=false*/, bool rebuildinformationlayer
SbVec3f p2(pnt2.x,pnt2.y,zConstr);

SoDatumLabel *asciiText = static_cast<SoDatumLabel *>(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;
Expand Down

0 comments on commit 04bc3f8

Please sign in to comment.