Allow length input as fraction
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user