[Libreoffice-commits] core.git: starmath/source
Thomas Arnhold
thomas at arnhold.org
Wed Sep 11 09:14:39 PDT 2013
starmath/source/view.cxx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 59a4b78bbe4a1aa1ef225adbc5cf3570a4de9b5e
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Wed Sep 11 13:35:46 2013 +0200
fdo#69111: Set edit window border to 4 again.
But increase the border on top to tear of the edit window easier.
Change-Id: I527ede488e4773dd631182d73809fef916b52c1a
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 7022cb3..445b0be 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -76,7 +76,10 @@
#define MAXZOOM 800
// space around the edit window, in pixels
-#define CMD_BOX_PADDING 10
+// fdo#69111: Increased border on the top so that the window is
+// easier to tear off.
+#define CMD_BOX_PADDING 4
+#define CMD_BOX_PADDING_TOP 10
#define SmViewShell
#include "smslots.hxx"
@@ -732,7 +735,7 @@ void SmCmdBoxWindow::Resize()
{
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
aRect.Left() += CMD_BOX_PADDING;
- aRect.Top() += CMD_BOX_PADDING;
+ aRect.Top() += CMD_BOX_PADDING_TOP;
aRect.Right() -= CMD_BOX_PADDING;
aRect.Bottom() -= CMD_BOX_PADDING;
@@ -749,7 +752,7 @@ void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/)
{
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
aRect.Left() += CMD_BOX_PADDING;
- aRect.Top() += CMD_BOX_PADDING;
+ aRect.Top() += CMD_BOX_PADDING_TOP;
aRect.Right() -= CMD_BOX_PADDING;
aRect.Bottom() -= CMD_BOX_PADDING;
More information about the Libreoffice-commits
mailing list