summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xestyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xestyle.cxx')
-rw-r--r--sc/source/filter/excel/xestyle.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 1bb6619eb4a8..ab7dd9dff35e 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -1543,16 +1543,16 @@ bool XclExpCellAlign::FillFromItemSet(
// Adjust for distributed alignments.
if (eHorAlign == SVX_HOR_JUSTIFY_BLOCK)
{
- SvxCellJustifyMethod eHorJustMethod = GETITEMVALUE(
- rItemSet, SvxJustifyMethodItem, ATTR_HOR_JUSTIFY_METHOD, SvxCellJustifyMethod);
+ SvxCellJustifyMethod eHorJustMethod =
+ rItemSet.GetItem<SvxJustifyMethodItem>(ATTR_HOR_JUSTIFY_METHOD)->GetValue();
if (eHorJustMethod == SvxCellJustifyMethod::Distribute)
mnHorAlign = EXC_XF_HOR_DISTRIB;
}
if (eVerAlign == SVX_VER_JUSTIFY_BLOCK)
{
- SvxCellJustifyMethod eVerJustMethod = GETITEMVALUE(
- rItemSet, SvxJustifyMethodItem, ATTR_VER_JUSTIFY_METHOD, SvxCellJustifyMethod);
+ SvxCellJustifyMethod eVerJustMethod =
+ rItemSet.GetItem<SvxJustifyMethodItem>(ATTR_VER_JUSTIFY_METHOD)->GetValue();
if (eVerJustMethod == SvxCellJustifyMethod::Distribute)
mnVerAlign = EXC_XF_VER_DISTRIB;
}