[Libreoffice-commits] core.git: Branch 'feature/gsoc-impresslayout' - sd/source

Vishv Brahmbhatt vishvbrahmbhatt19 at gmail.com
Sat Aug 24 00:04:42 PDT 2013


 sd/source/core/sdpage.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 37e02cf8f965f33bf8768fd6785692fab7460a5c
Author: Vishv Brahmbhatt <vishvbrahmbhatt19 at gmail.com>
Date:   Sat Aug 24 12:30:50 2013 +0530

    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

diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 244c375..8aa2a54 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;
                     }


More information about the Libreoffice-commits mailing list