summaryrefslogtreecommitdiff
path: root/sd/source/ui/slideshow/slideshowimpl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 08:43:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 13:23:40 +0100
commit4beed2ba7335fdb211aca7f70a144ffecf90a781 (patch)
tree23b645a3a2dca69466eaa664a34556d110745c95 /sd/source/ui/slideshow/slideshowimpl.cxx
parent79afa1d9b3ac33b75512095c6383db7f47342f26 (diff)
Revert "loplugin:changetoolsgen in sd" and reapply the plugin...
because I (a) forgot to insert parentheses which changes the meaning of some expressions and (b) I now use the AdjustFoo calls when changing unary operations, which reads much better This reverts commit 0d9f3f7628f88fa66aaeea1f7148db620e17e728. Change-Id: I33f79bf755aedc1ed48d95f7b82f3fabed1347fb Reviewed-on: https://gerrit.libreoffice.org/49834 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/slideshow/slideshowimpl.cxx')
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 790e157c0ad7..d55b9adb66a1 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -786,7 +786,7 @@ bool SlideshowImpl::startPreview(
if (AllSettings::GetLayoutRTL())
{
aContentRect.SetLeft( aContentRect.Right() );
- aContentRect.SetRight( aContentRect.Right() + aContentRect.Right() );
+ aContentRect.AdjustRight(aContentRect.Right() );
}
maPresSize = aContentRect.GetSize();
mpShowWindow->SetPosPixel( aContentRect.TopLeft() );