summaryrefslogtreecommitdiff
path: root/vcl/qt5/Qt5Graphics_Text.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qt5/Qt5Graphics_Text.cxx')
-rw-r--r--vcl/qt5/Qt5Graphics_Text.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/qt5/Qt5Graphics_Text.cxx b/vcl/qt5/Qt5Graphics_Text.cxx
index 37a0879b0044..94aa069db0c1 100644
--- a/vcl/qt5/Qt5Graphics_Text.cxx
+++ b/vcl/qt5/Qt5Graphics_Text.cxx
@@ -36,7 +36,7 @@
void Qt5Graphics::SetTextColor(Color nColor) { m_aTextColor = nColor; }
-void Qt5Graphics::SetFont(const FontSelectPattern* pReqFont, int nFallbackLevel)
+void Qt5Graphics::SetFont(LogicalFontInstance* pReqFont, int nFallbackLevel)
{
// release the text styles
for (int i = nFallbackLevel; i < MAX_FALLBACK; ++i)
@@ -48,11 +48,8 @@ void Qt5Graphics::SetFont(const FontSelectPattern* pReqFont, int nFallbackLevel)
if (!pReqFont)
return;
- assert(pReqFont->mpFontInstance);
- if (!pReqFont->mpFontInstance)
- return;
- m_pTextStyle[nFallbackLevel] = static_cast<Qt5Font*>(pReqFont->mpFontInstance.get());
+ m_pTextStyle[nFallbackLevel] = static_cast<Qt5Font*>(pReqFont);
}
void Qt5Graphics::GetFontMetric(ImplFontMetricDataRef& rFMD, int nFallbackLevel)