summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-06-25 12:48:51 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2020-06-26 11:34:55 +0200
commit3230ba0b3701ab3c7c4be284a2cb79d5025982c6 (patch)
tree9f11ed1834ece967c015d5fd5b3f3e5c128d0d70 /sc
parent2f283b44c708f3b30cef25ebd8e04a5b4c48c626 (diff)
notebookbar: remember LOKWindowId in interim builders
In case of notebookbar we need to remember the same id in every builder for each view to be able to use interim widgets. Then widgets are added to the same map as main notebookbar widgets. SfxViewShell is used as a common id as it is easily accessible. Change-Id: I4fbf2da320396efc80b08bcee9e341c165b1a290 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97199 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/cctrl/cbnumberformat.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/cctrl/cbnumberformat.cxx b/sc/source/ui/cctrl/cbnumberformat.cxx
index 830e24761d08..f1c863801490 100644
--- a/sc/source/ui/cctrl/cbnumberformat.cxx
+++ b/sc/source/ui/cctrl/cbnumberformat.cxx
@@ -27,7 +27,7 @@
#include <sc.hrc>
ScNumberFormat::ScNumberFormat(vcl::Window* pParent)
- : InterimItemWindow(pParent, "modules/scalc/ui/numberbox.ui", "NumberBox")
+ : InterimItemWindow(pParent, "modules/scalc/ui/numberbox.ui", "NumberBox", reinterpret_cast<sal_uInt64>(SfxViewShell::Current()))
, m_xWidget(m_xBuilder->weld_combo_box("numbertype"))
{
m_xWidget->append_text(ScResId(STR_GENERAL));