app: draw guides across the entire canvas also when rotated

This commit is contained in:
Michael Natterer 2013-04-25 09:12:35 +02:00
parent 37d589335f
commit 5d0450e4ea
1 changed files with 7 additions and 4 deletions

View File

@ -180,14 +180,17 @@ gimp_canvas_guide_transform (GimpCanvasItem *item,
GimpCanvasGuidePrivate *private = GET_PRIVATE (item);
GtkWidget *canvas = gimp_canvas_item_get_canvas (item);
GtkAllocation allocation;
gint max_outside;
gint x, y;
gtk_widget_get_allocation (canvas, &allocation);
*x1 = 0;
*y1 = 0;
*x2 = allocation.width;
*y2 = allocation.height;
max_outside = allocation.width + allocation.height;
*x1 = -max_outside;
*y1 = -max_outside;
*x2 = allocation.width + max_outside;
*y2 = allocation.height + max_outside;
switch (private->orientation)
{