diff --git a/src/groupmesh.cpp b/src/groupmesh.cpp index 8117834e..a46bb221 100644 --- a/src/groupmesh.cpp +++ b/src/groupmesh.cpp @@ -767,11 +767,7 @@ void Group::DrawContourAreaLabels(Canvas *canvas) { Canvas::Stroke stroke = Style::Stroke(hs); stroke.layer = Canvas::Layer::FRONT; - double scale = SS.MmPerUnit(); - std::string label = ssprintf("%.3f %s²", - fabs(sbls.SignedArea() / (scale * scale)), - SS.UnitName()); - + std::string label = SS.MmToStringSI(fabs(sbls.SignedArea()), /*dim=*/2); double fontHeight = Style::TextHeight(hs); double textWidth = VectorFont::Builtin()->GetWidth(fontHeight, label), textHeight = VectorFont::Builtin()->GetCapHeight(fontHeight); diff --git a/test/analysis/contour_area/normal.png b/test/analysis/contour_area/normal.png index 9daf8eeb..486fcdc4 100644 Binary files a/test/analysis/contour_area/normal.png and b/test/analysis/contour_area/normal.png differ