sc/source/ui/inc/SparklineRenderer.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7e4ca7397859687894cd6fa1c1bc9edb89a6148a Author: Andras Timar <[email protected]> AuthorDate: Sun Mar 1 18:05:59 2026 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Tue Mar 3 09:31:52 2026 +0100 Fix typo: numebrOfSteps -> numberOfSteps in SparklineRenderer Change-Id: I0c75464e5b802f6192b87eae457faf859104e0a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200724 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/sc/source/ui/inc/SparklineRenderer.hxx b/sc/source/ui/inc/SparklineRenderer.hxx index 1a8adc39a828..9d304b1b2eb2 100644 --- a/sc/source/ui/inc/SparklineRenderer.hxx +++ b/sc/source/ui/inc/SparklineRenderer.hxx @@ -270,7 +270,7 @@ private: std::vector<SparklineValue> const& rValueList = rSparklineValues.getValuesList(); std::vector<basegfx::B2DPolygon> aPolygons; aPolygons.emplace_back(); - double numebrOfSteps = rValueList.size() - 1; + double numberOfSteps = rValueList.size() - 1; double xStep = 0; double nDelta = nMax - nMin; @@ -289,7 +289,7 @@ private: double nValue = rSparklineValue.maValue; double nP = (nValue - nMin) / nDelta; - double x = rRectangle.GetWidth() * (xStep / numebrOfSteps); + double x = rRectangle.GetWidth() * (xStep / numberOfSteps); double y = rRectangle.GetHeight() - rRectangle.GetHeight() * nP; aPolygon.append({ x, y });
