diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-06-28 10:37:21 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-06-28 11:17:57 +0200 |
commit | 540eba75564e2c04d6a13677ac87d10907bd422d (patch) | |
tree | 893f1c791a8928f96c50b6162bb7a35e5023f5d2 /sw/source/uibase/uiview | |
parent | ddd86d9ee9562ef781133abd0e6f5281d480a657 (diff) |
sal_uInt16 to SwTwips and delay downcasts
Change-Id: I4a8a05905a779bb8c7fad830c049d1e403d79711
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r-- | sw/source/uibase/uiview/viewtab.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/uiview/viewtab.cxx b/sw/source/uibase/uiview/viewtab.cxx index c47ed97f04f4..6a1b0f673ceb 100644 --- a/sw/source/uibase/uiview/viewtab.cxx +++ b/sw/source/uibase/uiview/viewtab.cxx @@ -640,8 +640,7 @@ void SwView::ExecTabWin( SfxRequest& rReq ) } // Populate with default tabs. - sal_uInt16 nDef = ::GetTabDist( rDefTabs ); - ::MakeDefTabs( nDef, aTabStops ); + ::MakeDefTabs( ::GetTabDist( rDefTabs ), aTabStops ); SwTxtFmtColl* pColl = rSh.GetCurTxtFmtColl(); if( pColl && pColl->IsAutoUpdateFmt() ) @@ -720,8 +719,7 @@ void SwView::ExecTabWin( SfxRequest& rReq ) const SvxTabStopItem& rDefTabs = (const SvxTabStopItem&)rSh.GetDefault(RES_PARATR_TABSTOP); - sal_uInt16 nDef = ::GetTabDist(rDefTabs); - ::MakeDefTabs( nDef, aTabStops ); + ::MakeDefTabs( ::GetTabDist(rDefTabs), aTabStops ); if( pColl && pColl->IsAutoUpdateFmt()) { @@ -1209,7 +1207,7 @@ void SwView::StateTabWin(SfxItemSet& rSet) rSh.GetDefault(RES_PARATR_TABSTOP); OSL_ENSURE(m_pHRuler, "why is there no ruler?"); - long nDefTabDist = ::GetTabDist(rDefTabs); + const long nDefTabDist = ::GetTabDist(rDefTabs); m_pHRuler->SetDefTabDist( nDefTabDist ); m_pVRuler->SetDefTabDist( nDefTabDist ); ::lcl_EraseDefTabs(aTabStops); |