summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2024-06-28 20:52:04 -0400
committerJustin Luth <jluth@mail.com>2024-07-02 21:37:30 +0200
commit6adfa5811d4dc65b28544169825b88846bc55596 (patch)
tree24cf9cbf4fdf3db37a8f028a2099038af252d92a /sw
parent79c710438abbaa204df77f9b9ebebddbdf4ab02b (diff)
sw fmtcol.cxx: fix copy/paste error
I don't think it makes any functional difference, except that the wrong which ID would be returned. Otherwise they are all identical AFAIK. From commit fcb6e076d9004ef907a2616d04bf9c39908e6e8a Author: Bjoern Michaelsen on Sat Jan 9 21:49:51 2021 +0100 SfxPoolItem: introduce StaticWhichCast and DynamicWhichCast case RES_CHRATR_FONTSIZE: - aFontSizeArr[0] = static_cast<const SvxFontHeightItem*>(pNew); + aFontSizeArr[0] = &pNew->StaticWhichCast(RES_CHRATR_CJK_FONTSIZE); break; case RES_CHRATR_CJK_FONTSIZE: - aFontSizeArr[1] = static_cast<const SvxFontHeightItem*>(pNew); + aFontSizeArr[1] = &pNew->StaticWhichCast(RES_CHRATR_CJK_FONTSIZE); Change-Id: Ie85aacb8d28cadaa509cd9bc050cb9cf98b9967a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169747 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/fmtcol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index 055ab5fbabe2..52a544bd9ec9 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.cxx
@@ -206,7 +206,7 @@ void SwTextFormatColl::SwClientNotify(const SwModify& rModify, const SfxHint& rH
pNewULSpace = &pNew->StaticWhichCast(RES_UL_SPACE);
break;
case RES_CHRATR_FONTSIZE:
- aFontSizeArr[0] = &pNew->StaticWhichCast(RES_CHRATR_CJK_FONTSIZE);
+ aFontSizeArr[0] = &pNew->StaticWhichCast(RES_CHRATR_FONTSIZE);
break;
case RES_CHRATR_CJK_FONTSIZE:
aFontSizeArr[1] = &pNew->StaticWhichCast(RES_CHRATR_CJK_FONTSIZE);