diff --git a/EgtCalculator.xaml.vb b/EgtCalculator.xaml.vb index 62dd298..9d4ec2f 100644 --- a/EgtCalculator.xaml.vb +++ b/EgtCalculator.xaml.vb @@ -223,7 +223,7 @@ Public Class EgtCalculator ' La calcolatrice in pollici deve essere abilitata solo se programma NON in MM e IsLength = True m_IsLength = m_IsLength And Not EgtUiUnitsAreMM() - If m_IsLength Then + If m_IsLength AndAlso nCurrFractionPattern <> FractionPattern.None Then DotBtn.Visibility = Visibility.Collapsed BackspaceBtn.Visibility = Visibility.Collapsed FeetBtn.Visibility = Visibility.Visible @@ -362,7 +362,7 @@ Public Class EgtCalculator Dim bOk As Boolean = False ' se impostato per dati in frazioni Dim sDecimal As String = String.Empty - If StringFractionToStringDecimal(ValueTxBx.Text, sDecimal) Then + If nCurrFractionPattern <> FractionPattern.None AndAlso StringFractionToStringDecimal(ValueTxBx.Text, sDecimal) Then bOk = EgtUILib.EgtLuaEvalNumExpr(sDecimal, m_DoubleResult) Else bOk = EgtUILib.EgtLuaEvalNumExpr(ValueTxBx.Text, m_DoubleResult) diff --git a/My Project/AssemblyInfo.vb b/My Project/AssemblyInfo.vb index 580c46a..a510680 100644 --- a/My Project/AssemblyInfo.vb +++ b/My Project/AssemblyInfo.vb @@ -61,5 +61,5 @@ Imports System.Windows ' by using the '*' as shown below: ' - - + +