Fixed real vs integer detection in the Plist Editor

This commit is contained in:
vectorsigma72 2020-04-22 18:15:11 +02:00
parent 00e5e5e7a7
commit 8b9ad225a5

View File

@ -994,7 +994,7 @@ NSSearchFieldDelegate, NSSplitViewDelegate {
case .Number:
let newNum = numberFromLocalizedString(string: textField.stringValue)
self.outline.undo_SetValue(node: textField.node!,
newValue: (newNum is PEReal) ? newNum as! PEReal : newNum as! PEReal,
newValue: (newNum is PEInt) ? newNum as! PEInt : newNum as! PEReal,
oldValue: ro!.value!)
break
case .Data: