Allow length input as fraction

This commit is contained in:
AJ
2020-06-17 07:33:38 -04:00
parent 6aeadc458e
commit 84cce815e5

View File

@@ -19,9 +19,11 @@ namespace CutToLength
{
try
{
var input = Fraction.ReplaceFractionsWithDecimals(LengthInputValue);
double d;
if (double.TryParse(LengthInputValue, out d))
if (double.TryParse(input, out d))
{
LengthInputValue += "\"";
return d;