summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2022-02-01 10:26:42 +0200
committerJustin Luth <jluth@mail.com>2022-02-01 11:15:19 +0100
commitbace2e0a80b939f7b1c666cf669ae99bc8758f05 (patch)
treede4c1dca24beaf46a28a6f29b4d91cb65e04719b /svx
parent490fcebb0dc160e56058a925e32f31ec7bcb6e4d (diff)
related tdf#111733 svx: SfxVoidItem != SvxKerningItem
When selecting text containing several different kerning values, the pItem returned is a VoidItem. This was showing up as random numbers in the TextCharacterSpacingControl spinbutton. Change-Id: I94cfc566daa42e0d8c3d403eb08af659f01e6d5b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129270 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/text/TextCharacterSpacingControl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx
index 3da72391476a..ba528d702282 100644
--- a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx
+++ b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx
@@ -109,7 +109,7 @@ void TextCharacterSpacingControl::Initialize()
const SfxPoolItem* pItem;
SfxItemState eState = SfxViewFrame::Current()->GetBindings().GetDispatcher()->QueryState(SID_ATTR_CHAR_KERNING, pItem);
- const SvxKerningItem* pKerningItem = static_cast<const SvxKerningItem*>(pItem);
+ const SvxKerningItem* pKerningItem = dynamic_cast<const SvxKerningItem*>(pItem);
tools::Long nKerning = 0;
if(pKerningItem)