diff --git a/Source/Core/Controls/ButtonsNumericTextbox.cs b/Source/Core/Controls/ButtonsNumericTextbox.cs index 990c6899..0bd65bd2 100644 --- a/Source/Core/Controls/ButtonsNumericTextbox.cs +++ b/Source/Core/Controls/ButtonsNumericTextbox.cs @@ -117,9 +117,9 @@ namespace CodeImp.DoomBuilder.Controls } else if(textbox.AllowDecimal) { - float newvalue = textbox.GetResultFloat(0.0f) - (buttons.Value * stepsizeFloat); + float newvalue = (float)Math.Round(textbox.GetResultFloat(0.0f) - (buttons.Value * stepsizeFloat), General.Map.FormatInterface.VertexDecimals); if((newvalue < 0.0f) && !textbox.AllowNegative) newvalue = 0.0f; - textbox.Text = newvalue.ToString(General.Map.FormatInterface.DecimalsFormat); + textbox.Text = newvalue.ToString("0.0"); } else { diff --git a/Source/Core/Windows/MainForm.Designer.cs b/Source/Core/Windows/MainForm.Designer.cs index a5f43c71..b5b0ed59 100644 --- a/Source/Core/Windows/MainForm.Designer.cs +++ b/Source/Core/Windows/MainForm.Designer.cs @@ -1869,7 +1869,7 @@ namespace CodeImp.DoomBuilder.Windows this.statuslabel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.statuslabel.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.statuslabel.Name = "statuslabel"; - this.statuslabel.Size = new System.Drawing.Size(340, 18); + this.statuslabel.Size = new System.Drawing.Size(309, 18); this.statuslabel.Spring = true; this.statuslabel.Text = "Initializing user interface..."; this.statuslabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -2107,6 +2107,7 @@ namespace CodeImp.DoomBuilder.Windows this.warnsLabel.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.warnsLabel.Image = global::CodeImp.DoomBuilder.Properties.Resources.WarningOff; this.warnsLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.warnsLabel.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.warnsLabel.Name = "warnsLabel"; this.warnsLabel.Size = new System.Drawing.Size(44, 18); this.warnsLabel.Text = "0";