aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-14 12:59:52 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-14 12:59:52 +0200
commitf79a334b8aace6374633fd76f08032f07d8c1516 (patch)
tree970b89879545e8f6d2339040293d4cc6da069b86 /Software/Visual_Studio/Tango.Touch/Controls
parent7ac1bef92888719cc72bb34da1436b7c8b7ae242 (diff)
downloadTango-f79a334b8aace6374633fd76f08032f07d8c1516.tar.gz
Tango-f79a334b8aace6374633fd76f08032f07d8c1516.zip
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!
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs6
1 files changed, 6 insertions, 0 deletions
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))