diff --git a/src/Main/Base/Project/Src/Gui/Components/FontSelectionPanel.cs b/src/Main/Base/Project/Src/Gui/Components/FontSelectionPanel.cs index 3e4a12d3ca..d49acb9ff8 100644 --- a/src/Main/Base/Project/Src/Gui/Components/FontSelectionPanel.cs +++ b/src/Main/Base/Project/Src/Gui/Components/FontSelectionPanel.cs @@ -199,9 +199,9 @@ namespace ICSharpCode.SharpDevelop.Gui { if (!fontListComboBox.Enabled) return null; - int fontSize = 10; + float fontSize = 10f; try { - fontSize = Math.Max(6, Int32.Parse(fontSizeComboBox.Text)); + fontSize = Math.Max(6, Single.Parse(fontSizeComboBox.Text)); } catch (Exception) {} FontDescriptor fontDescriptor = (FontDescriptor)fontListComboBox.Items[fontListComboBox.SelectedIndex];