diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-01-11 00:06:49 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-01-11 05:38:52 +0100 |
commit | 98d71c4e0847797a4ba9229a8e6d832a8a3d5e0f (patch) | |
tree | 97012c315567a679abc827873746afa5fa90bdd0 /vcl/source/app/svapp.cxx | |
parent | 284a7f60fff72c4d8c011ff60ea2e40163cd25c3 (diff) |
tdf#69060: lock refreshing font data when loading a document
This accumulates all calls to OutputDevice::ImplRefreshAllFontData
while loading document's model, to avoid multiple updates for each
imported font. After loading, OutputDevice::ImplRefreshAllFontData
is executed once.
Change-Id: I5b23a2b8a3765dee9061b6479665d04c2ba11cbf
Reviewed-on: https://gerrit.libreoffice.org/47112
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r-- | vcl/source/app/svapp.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index c73769ebcc8a..c3f3b07827f0 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -987,6 +987,11 @@ void Application::RemoveUserEvent( ImplSVEvent * nUserEvent ) } } +void Application::LockFontUpdates(bool bLock) +{ + OutputDevice::LockFontUpdates(bLock); +} + WorkWindow* Application::GetAppWindow() { return ImplGetSVData()->maWinData.mpAppWin; |