From 2383a39636bec4b5f36eace2f776ef826c14a45c Mon Sep 17 00:00:00 2001 From: ruevs Date: Wed, 9 Feb 2022 10:27:54 +0200 Subject: [PATCH] UI: Display the circumference of a circle in the property browser Closes #1211 --- src/describescreen.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/describescreen.cpp b/src/describescreen.cpp index d2f94503..3e054a1a 100644 --- a/src/describescreen.cpp +++ b/src/describescreen.cpp @@ -167,10 +167,11 @@ void TextWindow::DescribeSelection() { case Entity::Type::CIRCLE: { Printf(false, "%FtCIRCLE%E"); p = SK.GetEntity(e->point[0])->PointGetNum(); - Printf(true, " center = " PT_AS_STR, COSTR(SK.GetEntity(e->point[0]), p)); + Printf(true, " center = " PT_AS_STR, COSTR(SK.GetEntity(e->point[0]), p)); double r = e->CircleGetRadiusNum(); - Printf(true, " diameter = %Fi%s", SS.MmToString(r*2).c_str()); - Printf(false, " radius = %Fi%s", SS.MmToString(r).c_str()); + Printf(true, " diameter = %Fi%s", SS.MmToString(r*2).c_str()); + Printf(false, " radius = %Fi%s", SS.MmToString(r).c_str()); + Printf(false, " circumference = %Fi%s", SS.MmToString(2*M_PI*r).c_str()); break; } case Entity::Type::FACE_NORMAL_PT: