summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoren De Cuyper <joren.libreoffice@telenet.be>2013-03-24 20:37:43 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-25 09:27:55 +0000
commit5451b7bd30fba75f216f38ba1a1c7c144fd3fa7e (patch)
tree14d398217ae2cbc222bc89cb8a3de6168dc4e66e
parent7016708ef411a7112c2acc504441ef7c10f570cc (diff)
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/2972 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r--sd/source/core/sdpage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index ecc38f4bbf4e..602fd5883171 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -1054,7 +1054,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);