summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc/TabControl.hxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2024-04-16 17:59:25 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2024-06-20 10:57:18 +0200
commit494161a9c8a9acca4d200d06c44ef6db794c0bea (patch)
treeadd43c07d4493a53ac504cc66ddb398d31fc2944 /sd/source/ui/inc/TabControl.hxx
parentafb4ea67463d9f0200dc6216cfd932aec0984c82 (diff)
cool#9309 lok: sync language in comphelper::LibreOfficeKit on view creation
If new view is created using createViewWithOptions API call we pass language of that view. We do a setup of that language in SfxLokHelper::setViewLanguage but it was only set inside ViewShell. Unfortunately just after we create the view we call setView which later checks if comphelper::LibreOfficeKit::getLanguageTag() has matching value with ViewShell field. It was showing warning in the logs: warn:lok:31748:31654:sfx2/source/view/lokhelper.cxx:206: LANGUAGE mismatch at setView! ... old (wrong) lang:de new lang:fr Let's check if the view we try to modify is the current one and in that case synchronize value we can get using global comphelper::LibreOfficeKit function. Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Icddfda003522dda661066c4d1c43ca1dec9e5c55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169107 (cherry picked from commit 800d8580ec8d99f5c610727a9d53ab143019c014) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169144 Tested-by: Jenkins
Diffstat (limited to 'sd/source/ui/inc/TabControl.hxx')
0 files changed, 0 insertions, 0 deletions