[TD] Refactor DrawViewDimension getFormatedValue() into two functions.

This commit is contained in:
Aapo
2020-11-27 16:33:10 +02:00
committed by wwmayer
parent 292a711922
commit e7b4d9ed99
5 changed files with 25 additions and 17 deletions

View File

@@ -639,7 +639,7 @@ private:
double parentX = dvp->X.getValue() + grandParentX;
double parentY = dvp->Y.getValue() + grandParentY;
Base::Vector3d parentPos(parentX,parentY,0.0);
std::string sDimText = dvd->getFormatedValue();
std::string sDimText = dvd->getFormattedDimensionValue();
char* dimText = &sDimText[0u]; //hack for const-ness
float gap = 5.0; //hack. don't know font size here.
layerName = dvd->getNameInDocument();