Browse Source

Bugfix -> Number Editor smallest possible Value was zero!

pull/584/head
jkuehner 11 years ago
parent
commit
22a021957b
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/PropertyGrid/Editors/NumberEditor.xaml.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/PropertyGrid/Editors/NumberEditor.xaml.cs

@ -94,7 +94,7 @@ namespace ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors
var range = Metadata.GetValueRange(PropertyNode.FirstProperty); var range = Metadata.GetValueRange(PropertyNode.FirstProperty);
if (range == null) { if (range == null) {
range = new NumberRange() { Min = 0, Max = double.MaxValue }; range = new NumberRange() { Min = double.MinValue, Max = double.MaxValue };
} }
if (range.Min == double.MinValue) { if (range.Min == double.MinValue) {

Loading…
Cancel
Save