From 3ba972f84bd13ddda8f9af7765ceab62e3937366 Mon Sep 17 00:00:00 2001 From: Randalphwa <38287198+Randalphwa@users.noreply.github.com> Date: Thu, 1 Jan 2026 21:44:49 -0800 Subject: [PATCH] Fix typo Makes the variable and function name clearer as to what it's for. --- source/svglayoutstate.cpp | 2 +- source/svglayoutstate.h | 4 ++-- source/svgtextelement.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/svglayoutstate.cpp b/source/svglayoutstate.cpp index e7a295b..24d583b 100644 --- a/source/svglayoutstate.cpp +++ b/source/svglayoutstate.cpp @@ -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)); diff --git a/source/svglayoutstate.h b/source/svglayoutstate.h index 1775835..4d08ad9 100644 --- a/source/svglayoutstate.h +++ b/source/svglayoutstate.h @@ -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; } @@ -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; diff --git a/source/svgtextelement.cpp b/source/svgtextelement.cpp index f62280b..6d43e57 100644 --- a/source/svgtextelement.cpp +++ b/source/svgtextelement.cpp @@ -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();