summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-02-03 21:13:10 +1100
committerCaolán McNamara <caolanm@redhat.com>2014-02-05 14:31:40 +0000
commit7e122c54f588f56d45e7c09a3327fecb0f8dbef8 (patch)
tree7f0afb2b50ec8663c53407127455ab756bc16247
parentd56804f00c927100d78ee847416e3ae6c131ecd0 (diff)
fdo#74424 Use Window::GetOutDev() to access ImplInitFontList()
Part of the decoupling of Window from OutputDevice. We now get the Window's OutputDevice instance and manipulate this. Do not rely on the inherited function. Change-Id: I18a2688d85ed23a4773e6527bd4923f7d6c83a28 Reviewed-on: https://gerrit.libreoffice.org/7799 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/window/window.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index bc7acff9bf6a..6aa8d7b43388 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -465,7 +465,8 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, sal_Bool bCallHdl
if ( !bUseSystemFont )
{
- ImplInitFontList();
+ OutputDevice *pOutDev = GetOutDev();
+ pOutDev->ImplInitFontList();
OUString aConfigFont = utl::DefaultFontConfiguration::get().getUserInterfaceFont( rSettings.GetUILanguageTag() );
sal_Int32 nIndex = 0;
while( nIndex != -1 )