scaling Text-Frame leads to error
Description
Environment
Win7
Activity

Brian King January 5, 2021 at 10:33 PM
Confirming this is still an issue with Win10 and Greenshot 1.2.10.6
Also this appears to be the same (or at least related) bug
It doesn’t crash immediately, but if you choose the selection tool, and then click on the resized text (for example, to change it size to make it readable again), then the crash occurs.
Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2021-01-05 18:30:50 -04:00
OS: unknown (x64) 10.0 build 19042 revision 0
GDI object count: 113
User object count: 101
Exception: System.MemberAccessException
Message: Could not set property 'Value' to '2.459016' [Decimal] on 11. Probably other type than expected, IBindingCoverter to the rescue.
Stack:
at Greenshot.Drawing.Fields.Binding.BidirectionalBinding.Synchronize(INotifyPropertyChanged sourceObject, String sourceProperty, INotifyPropertyChanged targetObject, String targetProperty)
at Greenshot.Drawing.Fields.Binding.BidirectionalBinding.FieldPropertyChanged(Object sender, PropertyChangedEventArgs e)
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at Greenshot.Drawing.Fields.Field.set_Value(Object value)
at Greenshot.Drawing.Fields.AbstractFieldHolder.SetFieldValue(IFieldType fieldType, Object value)
at Greenshot.Drawing.Fields.FieldAggregator.UpdateFromBoundElements()
at Greenshot.Drawing.Surface.SelectElement(IDrawableContainer container, Boolean invalidate, Boolean generateEvents)
at Greenshot.Drawing.Surface.SurfaceMouseUp(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--- InnerException: ---
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Stack:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at Greenshot.Drawing.Fields.Binding.BidirectionalBinding.Synchronize(INotifyPropertyChanged sourceObject, String sourceProperty, INotifyPropertyChanged targetObject, String targetProperty)
--- InnerException: ---
Exception: System.ArgumentOutOfRangeException
Message: Value of '2.459016' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
Stack:
at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
at Greenshot.Controls.ToolStripNumericUpDown.set_Value(Decimal value)
Configuration dump:
Details
Details
Assignee
Reporter

Reproduce:
Put a Text-Frame (15pt) in a screensot.
Afterwards scale screenshhot to 50%.
This leads to this Error Message: