summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishv Brahmbhatt <vishvbrahmbhatt19@gmail.com>2013-08-24 12:30:50 +0530
committerThorsten Behrens <tbehrens@suse.com>2013-08-26 14:47:29 +0200
commit84bbcab33ee0518f2c575dd99aa67c074e8cc107 (patch)
tree92aefa9f379746dd745875ec114d543425333be9
parent1eecb8df22b77a6982601bf877067a685d913a7d (diff)
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
-rw-r--r--sd/source/core/sdpage.cxx4
1 files 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;
}