summaryrefslogtreecommitdiff
path: root/sd/source/ui/annotations
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@gmx.com>2012-10-28 23:23:53 +0100
committerMichael Stahl <mstahl@redhat.com>2012-11-20 19:32:43 +0000
commit53ad646f54f8aa33b86c696c04500fd08ea6f3b6 (patch)
tree3eef1a050a5cf7b8b531f56e125d7252f4aab8fe /sd/source/ui/annotations
parent5e5c11c664f67ff9fd1120905b09a32bea3b2f6c (diff)
Enforce use of accessors on gen.hxx structures
Change-Id: Icd1b2937fdeaba6de1877258731f53ddf996002e Reviewed-on: https://gerrit.libreoffice.org/936 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sd/source/ui/annotations')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index bae35a7ee1d9..86781160a61e 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -395,10 +395,10 @@ void AnnotationManagerImpl::InsertAnnotation()
for( AnnotationVector::iterator iter = aAnnotations.begin(); iter != aAnnotations.end(); ++iter )
{
RealPoint2D aPoint( (*iter)->getPosition() );
- aTagRect.nLeft = sal::static_int_cast< long >( aPoint.X * 100.0 );
- aTagRect.nTop = sal::static_int_cast< long >( aPoint.Y * 100.0 );
- aTagRect.nRight = aTagRect.nLeft + width - 1;
- aTagRect.nBottom = aTagRect.nTop + height - 1;
+ aTagRect.Left() = sal::static_int_cast< long >( aPoint.X * 100.0 );
+ aTagRect.Top() = sal::static_int_cast< long >( aPoint.Y * 100.0 );
+ aTagRect.Right() = aTagRect.Left() + width - 1;
+ aTagRect.Bottom() = aTagRect.Top() + height - 1;
if( aNewRect.IsOver( aTagRect ) )
{