diff options
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(); } |