From f79a334b8aace6374633fd76f08032f07d8c1516 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 14 Jan 2021 12:59:52 +0200 Subject: Fixed issue where touch numeric textbox is rounding the volumes when moving from RGB/LAB to Volume. Fixed issue where changing the job thread type does not invalidate the liquid factors! --- Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs') diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs index ccb66d009..08edc4c6a 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs @@ -209,6 +209,8 @@ namespace Tango.Touch.Controls { if (_text_box != null && !_prevent_text_change) { + _prevent_text_change = true; + if (StringFormat != null) { _text_box.Text = Value.ToString(StringFormat); @@ -219,6 +221,8 @@ namespace Tango.Touch.Controls } _text_block.Text = _text_box.Text; + + _prevent_text_change = false; } if (Value != _lastValue) @@ -271,6 +275,8 @@ namespace Tango.Touch.Controls private void _text_box_TextChanged(object sender, TextChangedEventArgs e) { + if (_prevent_text_change) return; + double d = 0.0; if (double.TryParse(_text_box.Text, out d)) -- cgit v1.3.1