diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-07 14:21:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-08 07:37:58 +0100 |
commit | 8d762c146a79b5971541aa22217541c8aac017a4 (patch) | |
tree | a3d1ecf8e94568fcb5aff2ab73a155ed3ae7b614 /sw/source/core/edit | |
parent | ce8b6f3426e55b6d09a52eb4a7d17614fc1a6c15 (diff) |
add template versions of SwContentNode::GetAttr
Change-Id: I62c0d54c9e1dc89c5684210075219c1eeee9f942
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129602
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/edattr.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx index b249deb336f0..956110c00c72 100644 --- a/sw/source/core/edit/edattr.cxx +++ b/sw/source/core/edit/edattr.cxx @@ -513,8 +513,7 @@ bool SwEditShell::IsMoveLeftMargin( bool bRight, bool bModulus ) const if( nullptr != pCNd ) { pCNd = sw::GetParaPropsNode(*GetLayout(), *pCNd); - const SvxLRSpaceItem& rLS = static_cast<const SvxLRSpaceItem&>( - pCNd->GetAttr( RES_LR_SPACE )); + const SvxLRSpaceItem& rLS = pCNd->GetAttr( RES_LR_SPACE ); if( bRight ) { tools::Long nNext = rLS.GetTextLeft() + nDefDist; |