diff options
Diffstat (limited to 'sd/source/ui/func/fusnapln.cxx')
-rw-r--r-- | sd/source/ui/func/fusnapln.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sd/source/ui/func/fusnapln.cxx b/sd/source/ui/func/fusnapln.cxx index b4e93d7b41e1..24808e24a91b 100644 --- a/sd/source/ui/func/fusnapln.cxx +++ b/sd/source/ui/func/fusnapln.cxx @@ -69,7 +69,7 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) if (!pArgs) { - SfxItemSet aNewAttr(mpViewShell->GetPool(), svl::Items<ATTR_SNAPLINE_START, ATTR_SNAPLINE_END>{}); + SfxItemSetFixed<ATTR_SNAPLINE_START, ATTR_SNAPLINE_END> aNewAttr(mpViewShell->GetPool()); bool bLineExist (false); Point aLinePos; @@ -157,8 +157,8 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) } Point aHlpPos; - aHlpPos.setX( static_cast<const SfxInt32Item&>( pArgs->Get(ATTR_SNAPLINE_X)).GetValue() ); - aHlpPos.setY( static_cast<const SfxInt32Item&>( pArgs->Get(ATTR_SNAPLINE_Y)).GetValue() ); + aHlpPos.setX( pArgs->Get(ATTR_SNAPLINE_X).GetValue() ); + aHlpPos.setY( pArgs->Get(ATTR_SNAPLINE_Y).GetValue() ); pPV->PagePosToLogic(aHlpPos); if ( bCreateNew ) @@ -167,8 +167,7 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) pPV = mpView->GetSdrPageView(); - switch ( static_cast<SnapKind>(static_cast<const SfxUInt16Item&>( - pArgs->Get(ATTR_SNAPLINE_KIND)).GetValue()) ) + switch ( static_cast<SnapKind>(pArgs->Get(ATTR_SNAPLINE_KIND).GetValue()) ) { case SnapKind::Horizontal : eKind = SdrHelpLineKind::Horizontal; break; case SnapKind::Vertical : eKind = SdrHelpLineKind::Vertical; break; |