Move Selected Pixel without selection crashes Pinta

Bug #1186673 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Medium
Cameron White

Bug Description

Pinta from master on Windows XP.
1. Click on Move Selected Pixels.
2. Drag mouse on canvas.
I know it is stupid do use Move Selected Pixels if no selection is made, but this action crashes Pinta:
==========
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Cannot move a selection that has no selection polygons
   at Pinta.Tools.MoveSelectedTool.OnStartTransform() in C:\aaa\Pinta-master\Pinta-master\Pinta.Tools\Tools\MoveSelectedTool.cs:line 73
   at Pinta.Tools.BaseTransformTool.OnMouseDown(DrawingArea canvas, ButtonPressEventArgs args, PointD point) in C:\aaa\Pinta-master\Pinta-master\Pinta.Tools\Tools\BaseTransformTool.cs:line 87
   at Pinta.Core.BaseTool.DoMouseDown(DrawingArea canvas, ButtonPressEventArgs args, PointD point) in c:\aaa\Pinta-master\Pinta-master\Pinta.Core\Classes\BaseTool.cs:line 111
   at Pinta.Gui.Widgets.PintaCanvas.<.ctor>b__2(Object sender, ButtonPressEventArgs e) in c:\aaa\Pinta-master\Pinta-master\Pinta.Gui.Widgets\Widgets\Canvas\PintaCanvas.cs:line 60
   --- End of inner exception stack trace ---
  at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)
   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)
  at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
==========

Revision history for this message
grofaty (grofaty) wrote :

... and if OK button is clicked on crash message box. Rectangle Select and Move Selected Pixels and you get corrupted canvas. The work-around is restarting Pinta.

Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
assignee: nobody → Cameron White (cameronwhite91)
importance: Undecided → Medium
milestone: none → 1.5
status: New → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

Tested using master on Windows XP and problem is fixed. Thanks.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.