summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2023-03-06 11:33:08 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2023-03-07 09:29:50 +0000
commit09976bda9c196b2426b8826941f21384a58bf536 (patch)
treed7ce7a0c74652cd348bd5acc0d5c298156298541 /svx/source/tbxctrls
parent928fdf82a5a0e6bc70aac11b5a03690dcaf0c8c0 (diff)
jsdialog: don't close dialog on tab page destroy
was closing the whole dialog on tab switch in Format -> Characters -> Highlight when switching to "None" also avoid sending multiple "full updates" by using the same builder for sending message Change-Id: I4540c9c857acf2b9f40482678a30335edc24e7cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148314 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 03b4f4706ce3..6303bbcd7d4c 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1607,6 +1607,9 @@ Color SvxStyleBox_Base::TestColorsVisible(const Color &FontCol, const Color &Bac
IMPL_LINK(SvxStyleBox_Base, DumpAsPropertyTreeHdl, tools::JsonWriter&, rJsonWriter, void)
{
+ if (!m_xWidget)
+ return;
+
{
auto entriesNode = rJsonWriter.startNode("entries");
for (int i = 0, nEntryCount = m_xWidget->get_count(); i < nEntryCount; ++i)