diff --git a/src/Forms/SubStationAlphaProperties.cs b/src/Forms/SubStationAlphaProperties.cs index 61fdf65e2..26b4f033d 100644 --- a/src/Forms/SubStationAlphaProperties.cs +++ b/src/Forms/SubStationAlphaProperties.cs @@ -43,7 +43,7 @@ namespace Nikse.SubtitleEdit.Forms { foreach (string line in subtitle.Header.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries)) { - string s = line.ToLower(); + string s = line.ToLower().Trim(); if (s.StartsWith("title:")) { textBoxTitle.Text = s.Remove(0, 6).Trim(); diff --git a/src/Forms/SubStationAlphaStyles.Designer.cs b/src/Forms/SubStationAlphaStyles.Designer.cs index a24f60c54..af8ef8546 100644 --- a/src/Forms/SubStationAlphaStyles.Designer.cs +++ b/src/Forms/SubStationAlphaStyles.Designer.cs @@ -33,6 +33,7 @@ this.columnHeaderName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeaderFontName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeaderFontSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.columnHeaderUseCount = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeaderPrimaryColor = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeaderOutline = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.contextMenuStripStyles = new System.Windows.Forms.ContextMenuStrip(this.components); @@ -95,7 +96,6 @@ this.pictureBoxPreview = new System.Windows.Forms.PictureBox(); this.colorDialogSSAStyle = new System.Windows.Forms.ColorDialog(); this.openFileDialogImport = new System.Windows.Forms.OpenFileDialog(); - this.columnHeaderUseCount = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.contextMenuStripStyles.SuspendLayout(); this.groupBoxStyles.SuspendLayout(); this.groupBoxProperties.SuspendLayout(); @@ -154,6 +154,10 @@ this.columnHeaderFontSize.Text = "Font size"; this.columnHeaderFontSize.Width = 80; // + // columnHeaderUseCount + // + this.columnHeaderUseCount.Text = "Used#"; + // // columnHeaderPrimaryColor // this.columnHeaderPrimaryColor.Text = "Primary"; @@ -803,10 +807,6 @@ this.pictureBoxPreview.TabIndex = 0; this.pictureBoxPreview.TabStop = false; // - // columnHeaderUseCount - // - this.columnHeaderUseCount.Text = "Used#"; - // // SubStationAlphaStyles // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -817,7 +817,9 @@ this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.Controls.Add(this.groupBoxPreview); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.KeyPreview = true; + this.MaximizeBox = false; this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(898, 580); this.Name = "SubStationAlphaStyles";