Comment 7 for bug 776307

Revision history for this message
bruce (bruce-oy) wrote : Re: [Bug 776307] Re: an exception raised when creating a new image with width 0px and height 0px.

pasting into new image works! thanks for your reply!

2011/5/4 grofaty <email address hidden>

> If you would like to paste the picture from clipboard and get a auto-
> size the canvas then use alt+ctrl+v or use Edit | Paste Into New Image
> option. You don't need to create an empty file before pasting into new
> image, it is automatically created.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/776307
>
> Title:
> an exception raised when creating a new image with width 0px and
> height 0px.
>
> Status in Pinta:
> New
>
> Bug description:
> exception information follows:
> System.Reflection.TargetInvocationException: Exception has been thrown by
> the target of an invocation. ---> System.DivideByZeroException: Division by
> zero
> at Pinta.Core.DocumentWorkspace.set_Scale (Double value) [0x00000] in
> <filename unknown>:0
> at Pinta.Core.WorkspaceManager.set_Scale (Double value) [0x00000] in
> <filename unknown>:0
> at Pinta.Core.ViewActions.UpdateCanvasScale () [0x00000] in <filename
> unknown>:0
> at Pinta.Core.DocumentWorkspace.ZoomAndRecenterView (ZoomType zoomType,
> PointD point) [0x00000] in <filename unknown>:0
> at Pinta.Core.DocumentWorkspace.ZoomManually () [0x00000] in <filename
> unknown>:0
> at
> Pinta.Core.ViewActions.HandlePintaCoreActionsViewZoomComboBoxComboBoxChanged
> (System.Object sender, System.EventArgs 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
>
> this exception exists in the pinta for windows xp version.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/pinta/+bug/776307/+subscribe
>