Skip to content

Commit

Permalink
Fix invalid marker size sammycage#70
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Nov 20, 2022
1 parent 3881f34 commit 585d61e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/markerelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions source/property.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "property.h"
#include "styledelement.h"
#include "element.h"
#include "lunasvg.h"

#include <algorithm>
Expand Down Expand Up @@ -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};
Expand Down
2 changes: 1 addition & 1 deletion source/property.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 585d61e

Please sign in to comment.