[ooo-build-commit] Branch 'ooo-build-3-1-1' - patches/dev300
Thorsten Behrens
thorsten at kemper.freedesktop.org
Fri Aug 21 01:56:46 PDT 2009
patches/dev300/apply | 2 +
patches/dev300/drawinglayer-textbounds-fix.diff | 33 ++++++++++++++++++++++++
patches/dev300/dtrans-aqua-dragrect-fix.diff | 12 ++++++++
3 files changed, 47 insertions(+)
New commits:
commit 29978ea9bc7abae8ed83ddf37c31743b37348fab
Author: Thorsten Behrens <tbehrens at novell.com>
Date: Fri Aug 21 10:52:22 2009 +0200
Fix missing drag rect on mac, fix wrong text bounds in Impress
* patches/dev300/apply: added the two patches
* patches/dev300/drawinglayer-textbounds-fix.diff: the drawinglayer
was errorneously passing the magic 'empty rect' value literally
up to B2DRange for text bounds processing, leading to huge negative
values (which of course is wrong)
* patches/dev300/dtrans-aqua-dragrect-fix.diff: give Cocoa a hint
that display needs updating, after processing dragging events
in dtrans. Makes the Calc drag rect actually appear.
diff --git a/patches/dev300/apply b/patches/dev300/apply
index b136a18..d31fc72 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3408,3 +3408,5 @@ xmloff-layoutcode.diff, cocofan
avoid-too-long-filenames.diff
[ Fixes < ooo310-m19 ]
svx-gfx-lost-fix.diff, n#531221, i#104146, thorsten
+drawinglayer-textbounds-fix.diff, n#523603, thorsten
+dtrans-aqua-dragrect-fix.diff, i#104390, thorsten
diff --git a/patches/dev300/drawinglayer-textbounds-fix.diff b/patches/dev300/drawinglayer-textbounds-fix.diff
new file mode 100644
index 0000000..f4b0c5e
--- /dev/null
+++ b/patches/dev300/drawinglayer-textbounds-fix.diff
@@ -0,0 +1,33 @@
+Fix drawinglayer bound rect calculation for leading space
+
+From: Thorsten Behrens <thb at openoffice.org>
+
+
+---
+
+ .../source/primitive2d/textlayoutdevice.cxx | 10 +++++-----
+ 1 files changed, 5 insertions(+), 5 deletions(-)
+
+
+diff --git drawinglayer/source/primitive2d/textlayoutdevice.cxx drawinglayer/source/primitive2d/textlayoutdevice.cxx
+index 35f62a8..a5037dd 100644
+--- drawinglayer/source/primitive2d/textlayoutdevice.cxx
++++ drawinglayer/source/primitive2d/textlayoutdevice.cxx
+@@ -268,12 +268,12 @@ namespace drawinglayer
+ nIndex,
+ nLength);
+
+- return basegfx::B2DRange(aRect.Left(), aRect.Top(), aRect.Right(), aRect.Bottom());
+- }
+- else
+- {
+- return basegfx::B2DRange();
++ if( !aRect.IsEmpty() )
++ return basegfx::B2DRange(aRect.Left(), aRect.Top(),
++ aRect.Right(), aRect.Bottom());
+ }
++
++ return basegfx::B2DRange();
+ }
+ } // end of namespace primitive2d
+ } // end of namespace drawinglayer
diff --git a/patches/dev300/dtrans-aqua-dragrect-fix.diff b/patches/dev300/dtrans-aqua-dragrect-fix.diff
new file mode 100644
index 0000000..f712bd7
--- /dev/null
+++ b/patches/dev300/dtrans-aqua-dragrect-fix.diff
@@ -0,0 +1,12 @@
+--- dtrans/source/aqua/DropTarget.cxx~ 2009-07-27 11:20:36.000000000 +0200
++++ dtrans/source/aqua/DropTarget.cxx 2009-08-20 23:47:30.000000000 +0200
+@@ -297,6 +297,9 @@
+
+ fire_dragOver(dtde);
+
++ // drag over callbacks likely have rendered something
++ [mView setNeedsDisplay: TRUE];
++
+ dragOp = OfficeToSystemDragActions(mSelectedDropAction);
+
+ //NSLog(@"Drag update: Source actions: %x proposed action %x selected action %x", mDragSourceSupportedActions, currentAction, mSelectedDropAction);
More information about the ooo-build-commit
mailing list