From 84bbcab33ee0518f2c575dd99aa67c074e8cc107 Mon Sep 17 00:00:00 2001 From: Vishv Brahmbhatt Date: Sat, 24 Aug 2013 12:30:50 +0530 Subject: Small fix to the previous commit. Making a small logical change,as per my code.Please let me know if some other logic can be used here.'Slide Layouts' did not work properly after previous commit, so pushing this change. Change-Id: Iefbb33503bf1c37bdb899181c58109fb904af6de --- sd/source/core/sdpage.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx index 7be55e1b920c..66f3eae8af46 100644 --- a/sd/source/core/sdpage.cxx +++ b/sd/source/core/sdpage.cxx @@ -1319,8 +1319,8 @@ static void CalcAutoLayoutRectangles( SdPage& rPage,Rectangle* rRectangle ,const { Size aSize( basegfx::fround(aLayoutSize.Width() * propvalue[1]), basegfx::fround(aLayoutSize.Height() * propvalue[0]) ); - Point aPos( basegfx::fround(aLayoutPos.X() +(aLayoutSize.Width() * propvalue[2])), - basegfx::fround(aLayoutPos.Y() + (aLayoutSize.Height() * propvalue[3])) ); + Point aPos( basegfx::fround(aLayoutPos.X() +(aSize.Width() * propvalue[2])), + basegfx::fround(aLayoutPos.Y() + (aSize.Height() * propvalue[3])) ); rRectangle[count] = Rectangle (aPos, aSize); count = count+1; } -- cgit