[gimp/soc-2011-seamless-clone2] app: fix gimp_draw_tool_on_handle() on rotated views
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] app: fix gimp_draw_tool_on_handle() on rotated views
- Date: Wed, 8 May 2013 15:15:59 +0000 (UTC)
commit d5dc7180617ea2e782c37c2d623481367a72023d
Author: Michael Natterer <mitch gimp org>
Date: Sat Apr 20 15:30:23 2013 +0200
app: fix gimp_draw_tool_on_handle() on rotated views
Unrotate the display coords, then compare rectangles.
app/tools/gimpdrawtool.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index 64df401..6182812 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -1016,6 +1016,14 @@ gimp_draw_tool_on_handle (GimpDrawTool *draw_tool,
handle_x, handle_y,
&handle_tx, &handle_ty);
+ if (shell->rotate_untransform)
+ {
+ cairo_matrix_transform_point (shell->rotate_untransform,
+ &tx, &ty);
+ cairo_matrix_transform_point (shell->rotate_untransform,
+ &handle_tx, &handle_ty);
+ }
+
switch (type)
{
case GIMP_HANDLE_SQUARE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]