diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-11 09:00:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-11 17:35:44 +0200 |
commit | a3c95ec45397b146c86a3fa44445c763de99d3a3 (patch) | |
tree | 4c32e0d1ab85f034cd202a3f370e7a253f95859b /cppcanvas/source/mtfrenderer/implrenderer.cxx | |
parent | ef73142148c92319c1e96f2fe87a061fb6384937 (diff) |
rhbz#1589029 tdf#93789 impress not showing text highlight in presentation mode
the text hightlighting feature was implemented backed on to the vcl
TextFillColor feature. TextFillColor fills the background of the bounds
of the text with that color
Likely either the same problem or similar as tdf#93789
Change-Id: Iace62cedc49e5f5844ac35d3caa23249b6cb4bc1
Reviewed-on: https://gerrit.libreoffice.org/55629
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cppcanvas/source/mtfrenderer/implrenderer.cxx')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index f0b867272651..d6918db4a3fe 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -864,6 +864,7 @@ namespace cppcanvas // TODO(F2): implement all text effects // if( rState.textAlignment ); // TODO(F2): NYI + ::Color aTextFillColor( COL_AUTO ); ::Color aShadowColor( COL_AUTO ); ::Color aReliefColor( COL_AUTO ); ::Size aShadowOffset; @@ -929,6 +930,9 @@ namespace cppcanvas aReliefColor.SetTransparency( aTextColor.GetTransparency() ); } + if (rState.isTextFillColorSet) + aTextFillColor = vcl::unotools::doubleSequenceToColor(rState.textFillColor, xColorSpace); + // create the actual text action std::shared_ptr<Action> pTextAction( TextActionFactory::createTextAction( @@ -937,6 +941,7 @@ namespace cppcanvas aReliefColor, aShadowOffset, aShadowColor, + aTextFillColor, rString, nIndex, nLength, @@ -1001,6 +1006,7 @@ namespace cppcanvas aReliefColor, aShadowOffset, aShadowColor, + aTextFillColor, aStrikeoutText, 0/*nStartPos*/, aStrikeoutText.getLength(), |