diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-03-14 08:00:33 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-14 07:58:49 +0000 |
commit | 250995d2b8d8ad544110d3daeb2f61089bff0aa5 (patch) | |
tree | e67d3f5685831ec6207d78ab0bcdfc0dab7a4c4a /cui | |
parent | a09fc7dd097357b60931739b6ed281a0b931aa73 (diff) |
change SvxFrameDirectionItem base to SfxEnumItem
Change-Id: I82f01d0e3e4bf15ed6ba435406ae63b7c9110091
Reviewed-on: https://gerrit.libreoffice.org/35160
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/page.cxx | 6 | ||||
-rw-r--r-- | cui/source/tabpages/paragrph.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index 81b367bfeeb1..d85c1aa62a8e 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -649,10 +649,10 @@ void SvxPageDescPage::Reset( const SfxItemSet* rSet ) true, &pItem ); if( SfxItemState::UNKNOWN != eState ) { - sal_uInt32 nVal = SfxItemState::SET == eState + SvxFrameDirection nVal = SfxItemState::SET == eState ? static_cast<const SvxFrameDirectionItem*>(pItem)->GetValue() - : 0; - m_pTextFlowBox->SelectEntryValue( static_cast< SvxFrameDirection >( nVal ) ); + : FRMDIR_HORI_LEFT_TOP; + m_pTextFlowBox->SelectEntryValue(nVal); m_pTextFlowBox->SaveValue(); m_pBspWin->SetFrameDirection(nVal); diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 63876219713c..e92a056b512f 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -1259,7 +1259,7 @@ void SvxParaAlignTabPage::Reset( const SfxItemSet* rSet ) if( SfxItemState::DEFAULT <= rSet->GetItemState( _nWhich ) ) { const SvxFrameDirectionItem& rFrameDirItem = static_cast<const SvxFrameDirectionItem&>( rSet->Get( _nWhich ) ); - m_pTextDirectionLB->SelectEntryValue( (SvxFrameDirection)rFrameDirItem.GetValue() ); + m_pTextDirectionLB->SelectEntryValue( rFrameDirItem.GetValue() ); m_pTextDirectionLB->SaveValue(); } |