]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_dimlinear.cpp
Fixed problem with dimensions not showing up.
[architektonas] / src / base / rs_dimlinear.cpp
index 9797e36549db66e3e679f50b3a4b9589aa786677..6d587ef7f8f69ae9fbf35fd8916c5c18d1f89f7f 100644 (file)
@@ -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;