From b0483fcff5a726f49e43d2c3fdfa05bb9eaa4251 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Wed, 26 Aug 2026 23:18:50 +0200 Subject: [PATCH] Fix typos Change-Id: I2f0e2e45af1aa91cb5d06271e2c6893e5e2c42f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210079 Reviewed-by: Julien Nabet Tested-by: Jenkins --- vcl/qa/cppunit/PDFDocumentTest.cxx | 2 +- vcl/skia/win/gdiimpl.cxx | 2 +- vcl/source/filter/imet/ios2met.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vcl/qa/cppunit/PDFDocumentTest.cxx b/vcl/qa/cppunit/PDFDocumentTest.cxx index b0a18373525c..1b9e78cebe38 100644 --- a/vcl/qa/cppunit/PDFDocumentTest.cxx +++ b/vcl/qa/cppunit/PDFDocumentTest.cxx @@ -423,7 +423,7 @@ CPPUNIT_TEST_FIXTURE(PDFDocumentTest, testParseArrayNestedWithNumbers) CPPUNIT_ASSERT_EQUAL(size_t(1), pArray3->GetElements().size()); auto pNumber2 = dynamic_cast(pRootArray->GetElement(2)); - CPPUNIT_ASSERT(pNumber1); + CPPUNIT_ASSERT(pNumber2); CPPUNIT_ASSERT_DOUBLES_EQUAL(2.0, pNumber2->GetValue(), 1e-4); } } diff --git a/vcl/skia/win/gdiimpl.cxx b/vcl/skia/win/gdiimpl.cxx index f0c87abee2f7..3ada7416e988 100644 --- a/vcl/skia/win/gdiimpl.cxx +++ b/vcl/skia/win/gdiimpl.cxx @@ -325,7 +325,7 @@ sk_sp SkiaCompatibleDC::getAsImageDiff(const SkiaCompatibleDC& white) c // most widgets when drawn on transparent background are drawn properly (and the result // is in premultiplied alpha format), some such as "Edit" (used by ControlType::Editbox) // keep the alpha channel as transparent. Therefore the alpha is actually computed - // from the difference in the premultiplied red channels when drawn one black and on white. + // from the difference in the premultiplied red channels when drawn on black and on white. // Alpha is computed as "alpha = 1.0 - abs(black.red - white.red)". // I doubt this can be done using Skia, so do it manually here. Fortunately // the bitmaps should be fairly small and are cached. diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx index df1ed257d8be..915d63eb40fe 100644 --- a/vcl/source/filter/imet/ios2met.cxx +++ b/vcl/source/filter/imet/ios2met.cxx @@ -1443,7 +1443,7 @@ void OS2METReader::ReadMarker(bool bGivenPos, sal_uInt16 nOrderLen) break; } case 4: // SQUARE - case 8: { // SOLIDSUARE + case 8: { // SOLIDSQUARE tools::Polygon aPoly(4); aPoly.SetPoint(Point(x+4,y+4),0); aPoly.SetPoint(Point(x+4,y-4),1);