[Libreoffice-commits] core.git: Branch 'feature/cib_contract57c' - vcl/win

Samuel Mehrbrodt (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 26 14:11:41 UTC 2019


 vcl/win/gdi/salfont.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 41caefc49159385bb4f224450311b0d9b5e55786
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Tue Mar 26 15:08:12 2019 +0100
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Tue Mar 26 15:08:12 2019 +0100

    Fix windows build
    
    After 54ac2b203a6dd974c0153996ba67b26d585e98e1
    
    Change-Id: I805415dfa75568d843fceb5a79b637aac337ffd4

diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index b0158f9154d5..d34fc8a33996 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -932,6 +932,7 @@ void WinSalGraphics::SetFont( const FontSelectPattern* pFont, int nFallbackLevel
     // WinSalGraphics::GetEmbedFontData does not set mpFontInstance
     // since it is interested in font file data only.
     mpWinFontEntry[ nFallbackLevel ] = reinterpret_cast<WinFontInstance*>( pFont->mpFontInstance.get() );
+    WinFontInstance *pFontInstance = static_cast<WinFontInstance*>(pFont);
 
     HFONT hOldFont = nullptr;
     HFONT hNewFont = pFontInstance ? pFontInstance->GetHFONT() : nullptr;


More information about the Libreoffice-commits mailing list