[gimp] app: fix the canvas passe partout's extents
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix the canvas passe partout's extents
- Date: Fri, 12 Nov 2010 18:47:25 +0000 (UTC)
commit cca8273f5ed0d86eb25803c6a151a6d7f1107013
Author: Michael Natterer <mitch gimp org>
Date: Fri Nov 12 19:45:01 2010 +0100
app: fix the canvas passe partout's extents
app/display/gimpcanvaspassepartout.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpcanvaspassepartout.c b/app/display/gimpcanvaspassepartout.c
index 961db73..d4a8ffb 100644
--- a/app/display/gimpcanvaspassepartout.c
+++ b/app/display/gimpcanvaspassepartout.c
@@ -87,8 +87,11 @@ gimp_canvas_passe_partout_get_extents (GimpCanvasItem *item,
cairo_region_t *outer;
GdkRectangle rect = { 0, 0, 0, 0 };
+ rect.x = - shell->offset_x;
+ rect.y = - shell->offset_y;
gimp_display_shell_draw_get_scaled_image_size (shell,
&rect.width, &rect.height);
+
outer = cairo_region_create_rectangle ((cairo_rectangle_int_t *) &rect);
inner = GIMP_CANVAS_ITEM_CLASS (parent_class)->get_extents (item, shell);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]