diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/gdi/salfont.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index 7e3197807d10..7682def12661 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -1474,10 +1474,10 @@ class ScopedFontHDC final { public: explicit ScopedFontHDC(WinSalGraphics& rGraphics, const vcl::font::PhysicalFontFace& rFontFace) - : m_hDC(nullptr) - , m_hOrigFont(nullptr) // use height=1000 for easier debugging (to match psprint's font units) - , m_aFSP(rFontFace, Size(0,1000), 1000.0, 0, false) + : m_aFSP(rFontFace, Size(0,1000), 1000.0, 0, false) + , m_hDC(nullptr) + , m_hOrigFont(nullptr) { m_hDC = CreateCompatibleDC(rGraphics.getHDC()); if (!m_hDC) |