Allow length input as fraction
This commit is contained in:
@@ -19,9 +19,11 @@ namespace CutToLength
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
var input = Fraction.ReplaceFractionsWithDecimals(LengthInputValue);
|
||||||
|
|
||||||
double d;
|
double d;
|
||||||
|
|
||||||
if (double.TryParse(LengthInputValue, out d))
|
if (double.TryParse(input, out d))
|
||||||
{
|
{
|
||||||
LengthInputValue += "\"";
|
LengthInputValue += "\"";
|
||||||
return d;
|
return d;
|
||||||
|
|||||||
Reference in New Issue
Block a user