summaryrefslogtreecommitdiff
path: root/sw/source/core/graphic
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-11-12 11:55:28 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-12 14:47:00 +0100
commitd73225119476de1826f648acca9e93bf6797e813 (patch)
treea8061daec36f66550b58515b4dc8131feea0ead5 /sw/source/core/graphic
parent3168c5e09f084e65a32b5865d975ea9a9524d7c3 (diff)
use copy constructor to clone PoolItems
Change-Id: I2a45a62fd56cc5a768406c7a6e4c72456f962367 Reviewed-on: https://gerrit.libreoffice.org/44648 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/graphic')
-rw-r--r--sw/source/core/graphic/grfatr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/graphic/grfatr.cxx b/sw/source/core/graphic/grfatr.cxx
index 07f1b980db6b..545ee807ea0c 100644
--- a/sw/source/core/graphic/grfatr.cxx
+++ b/sw/source/core/graphic/grfatr.cxx
@@ -149,7 +149,7 @@ SfxPoolItem* SwCropGrf::Clone( SfxItemPool* ) const
SfxPoolItem* SwRotationGrf::Clone( SfxItemPool * ) const
{
- return new SwRotationGrf( GetValue(), aUnrotatedSize );
+ return new SwRotationGrf( *this );
}
bool SwRotationGrf::operator==( const SfxPoolItem& rCmp ) const