Testing with pre 1.6.0
https://dl.dropboxusercontent.com/u/1481774/pinta-dev-1.6.0.0.exe
To reproduce,
Close all documents
Then choose Magic Wand Select from the Tools palette
Unhandled exception error
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Tried to get WorkspaceManager.ActiveDocument when there are no open Documents. Check HasOpenDocuments first.
at Pinta.Core.WorkspaceManager.get_ActiveDocument() in c:\Users\Jonathan\Documents\Pinta\Pinta.Core\Managers\WorkspaceManager.cs:line 64
at Pinta.Tools.MagicWandTool.OnBuildToolBar(Toolbar tb) in c:\Users\Jonathan\Documents\Pinta\Pinta.Tools\Tools\MagicWandTool.cs:line 58
at Pinta.Core.BaseTool.DoBuildToolBar(Toolbar tb) in c:\Users\Jonathan\Documents\Pinta\Pinta.Core\Classes\BaseTool.cs:line 134
at Pinta.Core.ToolManager.SetCurrentTool(BaseTool tool) in c:\Users\Jonathan\Documents\Pinta\Pinta.Core\Managers\ToolManager.cs:line 150
at Pinta.Core.ToolManager.HandlePbToolItemClicked(Object sender, EventArgs e) in c:\Users\Jonathan\Documents\Pinta\Pinta.Core\Managers\ToolManager.cs:line 94
--- 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)
Downloaded 1.6.0.160 zip from Pinta Forge forge.pinta- project. com/
http://
the toolbox seems stable
can't trigger unhandled exception anymore.