diff options
Diffstat (limited to 'svx/source/svdraw/svdglue.cxx')
-rw-r--r-- | svx/source/svdraw/svdglue.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/svx/source/svdraw/svdglue.cxx b/svx/source/svdraw/svdglue.cxx index 784b3d8bfdc2..a662b99bfe0b 100644 --- a/svx/source/svdraw/svdglue.cxx +++ b/svx/source/svdraw/svdglue.cxx @@ -28,20 +28,20 @@ const Size aGlueHalfSize(4,4); void SdrGluePoint::SetReallyAbsolute(bool bOn, const SdrObject& rObj) { - if ( bReallyAbsolute != bOn ) - { - if ( bOn ) - { - aPos=GetAbsolutePos(rObj); - bReallyAbsolute=bOn; - } - else - { - bReallyAbsolute=bOn; - Point aPt(aPos); - SetAbsolutePos(aPt,rObj); - } - } + if ( bReallyAbsolute == bOn ) + return; + + if ( bOn ) + { + aPos=GetAbsolutePos(rObj); + bReallyAbsolute=bOn; + } + else + { + bReallyAbsolute=bOn; + Point aPt(aPos); + SetAbsolutePos(aPt,rObj); + } } Point SdrGluePoint::GetAbsolutePos(const SdrObject& rObj) const |