[Libreoffice-commits] core.git: Branch 'libreoffice-3-6-6' - sd/source

Joren De Cuyper joren.libreoffice at telenet.be
Fri Mar 29 07:19:54 PDT 2013


 sd/source/core/sdpage.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ee4a2d3d432e6fdbc651e124c6e1cf7df6133374
Author: Joren De Cuyper <joren.libreoffice at telenet.be>
Date:   Sun Mar 24 20:37:43 2013 +0100

    fdo#60462 - Small errors in the layout margins of the text boxes
    
    As you can see on this screenshot
    https://bugs.freedesktop.org/attachment.cgi?id=74399 there was a margin
    problem. The X-position of the text box is at 0.05, but the
    width was only 0.88 so we had 0.02 _extra_ on the right side. This is the
    width of that little margin error. Fixing it by setting Layoutsize width
    to 0.90, so we have on both side a nice 0.05 margin.
    
    Change-Id: Id712ce3695a760c8f955413c9392c008733d7fb9
    Reviewed-on: https://gerrit.libreoffice.org/2973
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Reviewed-by: Petr Mladek <pmladek at suse.cz>
    Tested-by: Petr Mladek <pmladek at suse.cz>
    Reviewed-by: Luboš Luňák <l.lunak at suse.cz>
    Tested-by: Luboš Luňák <l.lunak at suse.cz>

diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index d210139..41b8dc5 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -1063,7 +1063,7 @@ Rectangle SdPage::GetLayoutRect() const
         {
             aLayoutPos.X() += long( aLayoutSize.Width() * 0.05 );
             aLayoutPos.Y() += long( aLayoutSize.Height() * 0.234 );
-            aLayoutSize.Width() = long( aLayoutSize.Width() * 0.88 );
+            aLayoutSize.Width() = long( aLayoutSize.Width() * 0.9 );
             aLayoutSize.Height() = long( aLayoutSize.Height() * 0.58 );
             aLayoutRect.SetPos(aLayoutPos);
             aLayoutRect.SetSize(aLayoutSize);


More information about the Libreoffice-commits mailing list