X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_dimlinear.cpp;h=6d587ef7f8f69ae9fbf35fd8916c5c18d1f89f7f;hb=5374cdbb127a1bced9a65abeb30b1ef4eb5e35a7;hp=9797e36549db66e3e679f50b3a4b9589aa786677;hpb=89e127aa3dbd74d3158e6dbe0ca1703420c04395;p=architektonas diff --git a/src/base/rs_dimlinear.cpp b/src/base/rs_dimlinear.cpp index 9797e36..6d587ef 100644 --- a/src/base/rs_dimlinear.cpp +++ b/src/base/rs_dimlinear.cpp @@ -95,15 +95,11 @@ QString RS_DimLinear::getMeasuredLabel() QString ret; - if (graphic != NULL) - { + if (graphic) ret = RS_Units::formatLinear(dist, graphic->getUnit(), graphic->getLinearFormat(), graphic->getLinearPrecision()); - } else - { ret = QString("%1").arg(dist); - } //It's properly creating the label... //printf("RS_DimLinear::getMeasuredLabel: label=\"%s\"\n", ret.toAscii().data()); @@ -137,7 +133,7 @@ void RS_DimLinear::update(bool autoText) double dimexe = getExtensionLineExtension(); RS_LineData ld; - double extAngle = edata.angle + (M_PI/2.0); + double extAngle = edata.angle + (M_PI / 2.0); // direction of dimension line Vector dirDim;