diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-20 15:53:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-21 11:40:19 +0100 |
commit | 956dd4a202a0897b7ca1f8abd285af2cad47abb2 (patch) | |
tree | e691b573d43273755294df78c624e5a380c35a62 /sw/source/uibase/uiview/pview.cxx | |
parent | 648c8001783603d708af9e9552a51d2334fc6c2e (diff) |
TypedWhichId in svx part 2
Change-Id: Id927679c9f07f1dd820f4fdca9a45eb7aede037c
Reviewed-on: https://gerrit.libreoffice.org/46850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uiview/pview.cxx')
-rw-r--r-- | sw/source/uibase/uiview/pview.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx index 5a7aa7de520b..5eb755d5cb9c 100644 --- a/sw/source/uibase/uiview/pview.cxx +++ b/sw/source/uibase/uiview/pview.cxx @@ -704,10 +704,8 @@ void SwPagePreview::Execute( SfxRequest &rReq ) const SfxItemSet *pArgs = rReq.GetArgs(); if( pArgs && pArgs->Count() >= 2 ) { - sal_uInt8 nCols = (sal_uInt8)static_cast<const SfxUInt16Item &>(pArgs->Get( - SID_ATTR_TABLE_COLUMN)).GetValue(); - sal_uInt8 nRows = (sal_uInt8)static_cast<const SfxUInt16Item &>(pArgs->Get( - SID_ATTR_TABLE_ROW)).GetValue(); + sal_uInt8 nCols = (sal_uInt8)pArgs->Get(SID_ATTR_TABLE_COLUMN).GetValue(); + sal_uInt8 nRows = (sal_uInt8)pArgs->Get(SID_ATTR_TABLE_ROW).GetValue(); m_pViewWin->CalcWish( nRows, nCols ); } |