Fix typos
Change-Id: I2f0e2e45af1aa91cb5d06271e2c6893e5e2c42f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210079 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
This commit is contained in:
committed by
Julien Nabet
parent
cdca504f29
commit
b0483fcff5
@@ -423,7 +423,7 @@ CPPUNIT_TEST_FIXTURE(PDFDocumentTest, testParseArrayNestedWithNumbers)
|
||||
CPPUNIT_ASSERT_EQUAL(size_t(1), pArray3->GetElements().size());
|
||||
|
||||
auto pNumber2 = dynamic_cast<vcl::filter::PDFNumberElement*>(pRootArray->GetElement(2));
|
||||
CPPUNIT_ASSERT(pNumber1);
|
||||
CPPUNIT_ASSERT(pNumber2);
|
||||
CPPUNIT_ASSERT_DOUBLES_EQUAL(2.0, pNumber2->GetValue(), 1e-4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -325,7 +325,7 @@ sk_sp<SkImage> 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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user