diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-stylesheet.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/pdf/sdpdffilter.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/filter/eppt/pptx-stylesheet.cxx b/sd/source/filter/eppt/pptx-stylesheet.cxx index 6acf110c50b2..27fc7f3ac598 100644 --- a/sd/source/filter/eppt/pptx-stylesheet.cxx +++ b/sd/source/filter/eppt/pptx-stylesheet.cxx @@ -113,7 +113,7 @@ void PPTExCharSheet::Write( SvStream& rSt, sal_uInt16 nLev, bool bSimpleText, aAny >>= bIsDark; nFontColor = bIsDark ? 0xffffff : 0x000000; } - nFontColor.SetTransparency(0xfe); + nFontColor.SetAlpha(1); if ( bSimpleText ) { rSt.WriteUInt16( rLev.mnFontHeight ) diff --git a/sd/source/filter/pdf/sdpdffilter.cxx b/sd/source/filter/pdf/sdpdffilter.cxx index 8a413a7c706f..c34fa1bc78a6 100644 --- a/sd/source/filter/pdf/sdpdffilter.cxx +++ b/sd/source/filter/pdf/sdpdffilter.cxx @@ -159,7 +159,7 @@ bool SdPdfFilter::Import() else if (rPDFAnnotation.meSubType == vcl::pdf::PDFAnnotationSubType::Highlight) { if (!rCustomAnnotationMarker.maLineColor.IsTransparent()) - rCustomAnnotationMarker.maLineColor.SetTransparency(0x90); + rCustomAnnotationMarker.maLineColor.SetAlpha(255 - 0x90); auto* pMarker = static_cast<vcl::pdf::PDFAnnotationMarkerHighlight*>( rPDFAnnotation.mpMarker.get()); for (auto const& rPolygon : pMarker->maQuads) @@ -167,7 +167,7 @@ bool SdPdfFilter::Import() rCustomAnnotationMarker.mnLineWidth = 1; rCustomAnnotationMarker.maFillColor = rPDFAnnotation.maColor; if (!rCustomAnnotationMarker.maFillColor.IsTransparent()) - rCustomAnnotationMarker.maFillColor.SetTransparency(0x90); + rCustomAnnotationMarker.maFillColor.SetAlpha(255 - 0x90); } else if (rPDFAnnotation.meSubType == vcl::pdf::PDFAnnotationSubType::Line) { |