From 2dfc8667b60d9fe6827c4efdd2ba61d51d33bc9c Mon Sep 17 00:00:00 2001 From: wandererfan Date: Tue, 6 Sep 2022 14:35:59 -0400 Subject: [PATCH] [TD]default LineFormat ctor --- src/Mod/TechDraw/App/Cosmetic.cpp | 8 ++++++++ src/Mod/TechDraw/App/Cosmetic.h | 9 +++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/Mod/TechDraw/App/Cosmetic.cpp b/src/Mod/TechDraw/App/Cosmetic.cpp index e4d82992ae..125ae0a26f 100644 --- a/src/Mod/TechDraw/App/Cosmetic.cpp +++ b/src/Mod/TechDraw/App/Cosmetic.cpp @@ -74,6 +74,14 @@ using namespace std; #define COSMETICEDGE 1 #define CENTERLINE 2 +LineFormat::LineFormat() +{ + m_style = getDefEdgeStyle(); + m_weight = getDefEdgeWidth(); + m_color= getDefEdgeColor(); + m_visible = true; +} + LineFormat::LineFormat(int style, double weight, App::Color color, diff --git a/src/Mod/TechDraw/App/Cosmetic.h b/src/Mod/TechDraw/App/Cosmetic.h index ef8b46355d..10fc4629dc 100644 --- a/src/Mod/TechDraw/App/Cosmetic.h +++ b/src/Mod/TechDraw/App/Cosmetic.h @@ -44,10 +44,11 @@ class DrawViewPart; class TechDrawExport LineFormat { public: - LineFormat(int style = getDefEdgeStyle(), - double weight = getDefEdgeWidth(), - App::Color color = getDefEdgeColor(), - bool visible = true); + LineFormat(); + LineFormat(int style, + double weight, + App::Color color, + bool visible); ~LineFormat() = default; int m_style;