summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/grfpage.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-13 14:21:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 12:50:37 +0100
commitf841dada1a5018897cce29ccf972da33ece4738c (patch)
treeaf861d8c6abf98eed1b20ba7fdab2b3997d6e9be /cui/source/tabpages/grfpage.cxx
parent9763383ebb7e5b10ba9e7557dffa803a8d392c0d (diff)
loplugin:changetoolsgen in canvas..cui
Change-Id: I4e320055a3dbe4159c2aa2714e1ee98182e1e80a Reviewed-on: https://gerrit.libreoffice.org/49642 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/tabpages/grfpage.cxx')
-rw-r--r--cui/source/tabpages/grfpage.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx
index a6601edbe2cf..06cdf8997943 100644
--- a/cui/source/tabpages/grfpage.cxx
+++ b/cui/source/tabpages/grfpage.cxx
@@ -282,9 +282,9 @@ bool SvxGrfCropPage::FillItemSet(SfxItemSet *rSet)
Size aTmpSz( aSz.GetSize() );
if( m_pWidthMF->IsValueChangedFromSaved() )
- aTmpSz.Width() = lcl_GetValue( *m_pWidthMF, eUnit );
+ aTmpSz.setWidth( lcl_GetValue( *m_pWidthMF, eUnit ) );
if( m_pHeightMF->IsValueChangedFromSaved() )
- aTmpSz.Height() = lcl_GetValue( *m_pHeightMF, eUnit );
+ aTmpSz.setHeight( lcl_GetValue( *m_pHeightMF, eUnit ) );
aSz.SetSize( aTmpSz );
m_pWidthMF->SaveValue();
m_pHeightMF->SaveValue();
@@ -794,9 +794,9 @@ void SvxCropExample::Paint(vcl::RenderContext& rRenderContext, const ::tools::Re
aSz = rRenderContext.PixelToLogic(aSz);
rRenderContext.SetFillColor(Color(COL_TRANSPARENT));
rRenderContext.SetRasterOp(RasterOp::Invert);
- aRect.Left() += aTopLeft.Y();
+ aRect.SetLeft( aRect.Left() + aTopLeft.Y() );
aRect.Top() += aTopLeft.X();
- aRect.Right() -= aBottomRight.Y();
+ aRect.SetRight( aRect.Right() - aBottomRight.Y() );
aRect.Bottom() -= aBottomRight.X();
rRenderContext.DrawRect(aRect);
}
@@ -810,9 +810,9 @@ void SvxCropExample::SetFrameSize( const Size& rSz )
{
aFrameSize = rSz;
if(!aFrameSize.Width())
- aFrameSize.Width() = 1;
+ aFrameSize.setWidth( 1 );
if(!aFrameSize.Height())
- aFrameSize.Height() = 1;
+ aFrameSize.setHeight( 1 );
Size aWinSize( GetOutputSizePixel() );
Fraction aXScale( aWinSize.Width() * 4, aFrameSize.Width() * 5 );
Fraction aYScale( aWinSize.Height() * 4, aFrameSize.Height() * 5 );