From c54b65fff72878c22f7be1f70c46fb46149f1ac1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 5 Apr 2025 20:21:05 +0100 Subject: [PATCH] Formatting. (cherry picked from commit 7a9db0f8c15e214eaece2138645d1c7ff68413db) --- common/eda_shape.cpp | 45 +++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/common/eda_shape.cpp b/common/eda_shape.cpp index f2fa608204..7f8e8bc0ff 100644 --- a/common/eda_shape.cpp +++ b/common/eda_shape.cpp @@ -2319,32 +2319,35 @@ static struct EDA_SHAPE_DESC PROPERTY_MANAGER& propMgr = PROPERTY_MANAGER::Instance(); REGISTER_TYPE( EDA_SHAPE ); - auto isNotPolygonOrCircle = []( INSPECTABLE* aItem ) -> bool - { - // Polygons, unlike other shapes, have no meaningful start or end coordinates - if( EDA_SHAPE* shape = dynamic_cast( aItem ) ) - return shape->GetShape() != SHAPE_T::POLY && shape->GetShape() != SHAPE_T::CIRCLE; + auto isNotPolygonOrCircle = + []( INSPECTABLE* aItem ) -> bool + { + // Polygons, unlike other shapes, have no meaningful start or end coordinates + if( EDA_SHAPE* shape = dynamic_cast( aItem ) ) + return shape->GetShape() != SHAPE_T::POLY && shape->GetShape() != SHAPE_T::CIRCLE; - return false; - }; + return false; + }; - auto isCircle = []( INSPECTABLE* aItem ) -> bool - { - // Polygons, unlike other shapes, have no meaningful start or end coordinates - if( EDA_SHAPE* shape = dynamic_cast( aItem ) ) - return shape->GetShape() == SHAPE_T::CIRCLE; + auto isCircle = + []( INSPECTABLE* aItem ) -> bool + { + // Polygons, unlike other shapes, have no meaningful start or end coordinates + if( EDA_SHAPE* shape = dynamic_cast( aItem ) ) + return shape->GetShape() == SHAPE_T::CIRCLE; - return false; - }; + return false; + }; - auto isRectangle = []( INSPECTABLE* aItem ) -> bool - { - // Polygons, unlike other shapes, have no meaningful start or end coordinates - if( EDA_SHAPE* shape = dynamic_cast( aItem ) ) - return shape->GetShape() == SHAPE_T::RECTANGLE; + auto isRectangle = + []( INSPECTABLE* aItem ) -> bool + { + // Polygons, unlike other shapes, have no meaningful start or end coordinates + if( EDA_SHAPE* shape = dynamic_cast( aItem ) ) + return shape->GetShape() == SHAPE_T::RECTANGLE; - return false; - }; + return false; + }; const wxString shapeProps = _HKI( "Shape Properties" );