From 585d61eef24510bc0b7fe3d9e768d0675d4b5a6f Mon Sep 17 00:00:00 2001 From: sammycage Date: Sun, 20 Nov 2022 11:10:57 +0100 Subject: [PATCH] Fix invalid marker size #70 --- source/markerelement.cpp | 4 ++-- source/property.cpp | 4 ++-- source/property.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/markerelement.cpp b/source/markerelement.cpp index 5a61aff..1de0aba 100644 --- a/source/markerelement.cpp +++ b/source/markerelement.cpp @@ -24,13 +24,13 @@ Length MarkerElement::refY() const Length MarkerElement::markerWidth() const { auto& value = get(PropertyID::MarkerWidth); - return Parser::parseLength(value, ForbidNegativeLengths, Length::ThreePercent); + return Parser::parseLength(value, ForbidNegativeLengths, Length::Three); } Length MarkerElement::markerHeight() const { auto& value = get(PropertyID::MarkerHeight); - return Parser::parseLength(value, ForbidNegativeLengths, Length::ThreePercent); + return Parser::parseLength(value, ForbidNegativeLengths, Length::Three); } Angle MarkerElement::orient() const diff --git a/source/property.cpp b/source/property.cpp index 44b1414..6dd4e2c 100644 --- a/source/property.cpp +++ b/source/property.cpp @@ -1,5 +1,5 @@ #include "property.h" -#include "styledelement.h" +#include "element.h" #include "lunasvg.h" #include @@ -547,7 +547,7 @@ void PathIterator::next() const Length Length::Unknown{0, LengthUnits::Unknown}; const Length Length::Zero{0, LengthUnits::Number}; const Length Length::One{1, LengthUnits::Number}; -const Length Length::ThreePercent{3, LengthUnits::Percent}; +const Length Length::Three{3, LengthUnits::Number}; const Length Length::HundredPercent{100, LengthUnits::Percent}; const Length Length::FiftyPercent{50, LengthUnits::Percent}; const Length Length::OneTwentyPercent{120, LengthUnits::Percent}; diff --git a/source/property.h b/source/property.h index 6195810..cdbff73 100644 --- a/source/property.h +++ b/source/property.h @@ -285,7 +285,7 @@ class Length static const Length Unknown; static const Length Zero; static const Length One; - static const Length ThreePercent; + static const Length Three; static const Length HundredPercent; static const Length FiftyPercent; static const Length OneTwentyPercent;