Selection exceeding canvas + fill = exception

Bug #671528 reported by Maia Everett on 2010-11-05
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Pinta
Medium
Unassigned

Bug Description

To reproduce:

1. With the selection tool, select an area partially going outside the canvas.
2. With the fill tool, click on the selection.

Expected result: the part of the selection inside the canvas gets filled.
Actual result: an exception dialog is displayed.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: x
  at Pinta.Core.BitVector2DSurfaceAdapter.Set (Int32 x, Int32 y, Boolean newValue) [0x00000] in <filename unknown>:0
  at Pinta.Core.BitVector2DSurfaceAdapter.Set (Rectangle rect, Boolean newValue) [0x00000] in <filename unknown>:0
  at Pinta.Tools.FloodTool.FillStencilFromPoint (Cairo.ImageSurface surface, IBitVector2D stencil, Point start, Int32 tolerance, Cairo.Rectangle& boundingBox, Gdk.Region limitRegion, Boolean limitToSelection) [0x00000] in <filename unknown>:0
  at Pinta.Tools.FloodTool.OnMouseDown (Gtk.DrawingArea canvas, Gtk.ButtonPressEventArgs args, PointD point) [0x00000] in <filename unknown>:0
  at Pinta.Tools.PaintBucketaTool.OnMouseDown (Gtk.DrawingArea canvas, Gtk.ButtonPressEventArgs args, PointD point) [0x00000] in <filename unknown>:0
  at Pinta.Core.BaseTool.DoMouseDown (Gtk.DrawingArea canvas, Gtk.ButtonPressEventArgs args, PointD point) [0x00000] in <filename unknown>:0
  at Pinta.Gui.Widgets.PintaCanvas.<PintaCanvas>m__E (System.Object sender, Gtk.ButtonPressEventArgs e) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0

grofaty (grofaty) on 2010-11-07
Changed in pinta:
status: New → Confirmed
Jonathan Pobst (jpobst) wrote :
Changed in pinta:
importance: Undecided → Medium
milestone: none → 0.6
status: Confirmed → Fix Committed
grofaty (grofaty) wrote :

I have installed Pinta 0.7 on Windows XP sp3 and bug is fixed.

Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers