diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-08-31 15:37:22 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-08-31 15:53:25 +0200 |
commit | ca77ec422ea617c84400370b082e71437e4590cc (patch) | |
tree | 6b59acb7b65faf0dee31e2600793c40f7feebb5a /vcl/win | |
parent | 751c5f5b75ed27359d8bd8410e5a19ee638b175c (diff) |
vcl: Improve management of mnRef0Count.
Follow-up to 34700400247e378e074ce4164ab2809edb092201; this fixes sw_ww8export
unit test on Windows.
Change-Id: Ic0c3228efb59a182e1562b73117418cd8b5e6017
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index a7f44e29d6a7..cd4b3695f24e 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -455,7 +455,8 @@ WinLayout::WinLayout(HDC hDC, const ImplWinFontData& rWFD, ImplWinFontEntry& rWF mrWinFontEntry(rWFE), mbUseOpenGL(bUseOpenGL) { - ++mrWinFontEntry.mnRefCount; // keep it alive + // keep mrWinFontEntry alive + mrWinFontEntry.m_pFontCache->Acquire(&mrWinFontEntry); } WinLayout::~WinLayout() |