Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/svglayoutstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ SVGLayoutState::SVGLayoutState(const SVGLayoutState& parent, const SVGElement* e
m_word_spacing = parseLengthOrNormal(input);
break;
case PropertyID::Baseline_Shift:
m_baseline_shit = parseBaselineShift(input);
m_baseline_shift = parseBaselineShift(input);
break;
case PropertyID::Stroke_Width:
m_stroke_width = parseLength(input, LengthNegativeMode::Forbid, Length(1.f, LengthUnits::None));
Expand Down
4 changes: 2 additions & 2 deletions source/svglayoutstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SVGLayoutState {
const Length& letter_spacing() const { return m_letter_spacing; }
const Length& word_spacing() const { return m_word_spacing; }

const BaselineShift& baseline_shit() const { return m_baseline_shit; }
const BaselineShift& baseline_shift() const { return m_baseline_shift; }
const Length& stroke_width() const { return m_stroke_width; }
const Length& stroke_dashoffset() const { return m_stroke_dashoffset; }
const LengthList& stroke_dasharray() const { return m_stroke_dasharray; }
Expand Down Expand Up @@ -87,7 +87,7 @@ class SVGLayoutState {
Length m_letter_spacing{0.f, LengthUnits::None};
Length m_word_spacing{0.f, LengthUnits::None};

BaselineShift m_baseline_shit;
BaselineShift m_baseline_shift;
Length m_stroke_width{1.f, LengthUnits::None};
Length m_stroke_dashoffset{0.f, LengthUnits::None};
LengthList m_stroke_dasharray;
Expand Down
2 changes: 1 addition & 1 deletion source/svgtextelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ void SVGTextPositioningElement::layoutElement(const SVGLayoutState& state)
m_letter_spacing = lengthContext.valueForLength(state.letter_spacing(), LengthDirection::Diagonal);
m_word_spacing = lengthContext.valueForLength(state.word_spacing(), LengthDirection::Diagonal);

m_baseline_offset = convertBaselineOffset(state.baseline_shit());
m_baseline_offset = convertBaselineOffset(state.baseline_shift());
m_alignment_baseline = state.alignment_baseline();
m_dominant_baseline = state.dominant_baseline();
m_text_anchor = state.text_anchor();
Expand Down