tdf#157240: also set font color together with font
Commit b008831a55
(tdf#152990 set the font
after the MapMode is (potentially) set, 2023-01-14) had moved setting of
font forward, but left setting the font color behind. This fixed that.
Change-Id: I73fadc7c139da3b6f84b7fc875c585d02fc1c719
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166654
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -326,8 +326,6 @@ void VclProcessor2D::RenderTextSimpleOrDecoratedPortionPrimitive2D(
|
|||||||
mpOutputDevice->SetLayoutMode(nRTLLayoutMode);
|
mpOutputDevice->SetLayoutMode(nRTLLayoutMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
mpOutputDevice->SetTextColor(Color(aRGBFontColor));
|
|
||||||
|
|
||||||
OUString aText(rTextCandidate.getText());
|
OUString aText(rTextCandidate.getText());
|
||||||
sal_Int32 nPos = rTextCandidate.getTextPosition();
|
sal_Int32 nPos = rTextCandidate.getTextPosition();
|
||||||
sal_Int32 nLen = rTextCandidate.getTextLength();
|
sal_Int32 nLen = rTextCandidate.getTextLength();
|
||||||
@@ -439,6 +437,7 @@ void VclProcessor2D::RenderTextSimpleOrDecoratedPortionPrimitive2D(
|
|||||||
// tdf#152990 set the font after the MapMode is (potentially) set so canvas uses the desired
|
// tdf#152990 set the font after the MapMode is (potentially) set so canvas uses the desired
|
||||||
// font size
|
// font size
|
||||||
mpOutputDevice->SetFont(aFont);
|
mpOutputDevice->SetFont(aFont);
|
||||||
|
mpOutputDevice->SetTextColor(Color(aRGBFontColor));
|
||||||
|
|
||||||
if (!aDXArray.empty())
|
if (!aDXArray.empty())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user