A few minor adjustments

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1023 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2012-03-08 07:14:56 +00:00
parent 8afe681dc4
commit d2cc0eec46
5 changed files with 20 additions and 8 deletions

View File

@ -19,7 +19,7 @@ Subtitle Edit Changelog
* Go to next/prev sub (or double click in time line) will center selected * Go to next/prev sub (or double click in time line) will center selected
line in listview - thx Sean/vmb/Leszek line in listview - thx Sean/vmb/Leszek
* Multiple replace can now move items up/down - thx Majid * Multiple replace can now move items up/down - thx Majid
* Improved support of SCCP format * Improved support for the SCC format
* FIXED: * FIXED:
* Export to Blu-ray sup timestamps * Export to Blu-ray sup timestamps
* Crash in Visual Sync - thx XhmikosR * Crash in Visual Sync - thx XhmikosR

View File

@ -656,6 +656,9 @@
AAAAAAAAgAEAAP//AAA= AAAAAAAAgAEAAP//AAA=
</value> </value>
</data> </data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>
<data name="$this.Text" xml:space="preserve"> <data name="$this.Text" xml:space="preserve">
<value>Go to line</value> <value>Go to line</value>
</data> </data>

View File

@ -1333,7 +1333,7 @@
// labelSpectrogramAppearance // labelSpectrogramAppearance
// //
this.labelSpectrogramAppearance.AutoSize = true; this.labelSpectrogramAppearance.AutoSize = true;
this.labelSpectrogramAppearance.Location = new System.Drawing.Point(10, 54); this.labelSpectrogramAppearance.Location = new System.Drawing.Point(10, 52);
this.labelSpectrogramAppearance.Name = "labelSpectrogramAppearance"; this.labelSpectrogramAppearance.Name = "labelSpectrogramAppearance";
this.labelSpectrogramAppearance.Size = new System.Drawing.Size(164, 13); this.labelSpectrogramAppearance.Size = new System.Drawing.Size(164, 13);
this.labelSpectrogramAppearance.TabIndex = 15; this.labelSpectrogramAppearance.TabIndex = 15;
@ -1356,7 +1356,7 @@
this.checkBoxGenerateSpectrogram.AutoSize = true; this.checkBoxGenerateSpectrogram.AutoSize = true;
this.checkBoxGenerateSpectrogram.Location = new System.Drawing.Point(10, 20); this.checkBoxGenerateSpectrogram.Location = new System.Drawing.Point(10, 20);
this.checkBoxGenerateSpectrogram.Name = "checkBoxGenerateSpectrogram"; this.checkBoxGenerateSpectrogram.Name = "checkBoxGenerateSpectrogram";
this.checkBoxGenerateSpectrogram.Size = new System.Drawing.Size(131, 17); this.checkBoxGenerateSpectrogram.Size = new System.Drawing.Size(134, 17);
this.checkBoxGenerateSpectrogram.TabIndex = 11; this.checkBoxGenerateSpectrogram.TabIndex = 11;
this.checkBoxGenerateSpectrogram.Text = "Generate spectrogram"; this.checkBoxGenerateSpectrogram.Text = "Generate spectrogram";
this.checkBoxGenerateSpectrogram.UseVisualStyleBackColor = true; this.checkBoxGenerateSpectrogram.UseVisualStyleBackColor = true;

View File

@ -578,6 +578,8 @@ namespace Nikse.SubtitleEdit.Forms
{ {
int newButtonHeight = (int)(textSize.Height + 7 + 0.5); int newButtonHeight = (int)(textSize.Height + 7 + 0.5);
Utilities.SetButtonHeight(this, newButtonHeight, 1); Utilities.SetButtonHeight(this, newButtonHeight, 1);
Utilities.SetButtonHeight(groupBoxSsaStyle, newButtonHeight, 2);
Utilities.SetButtonHeight(groupBoxWaveFormAppearence, newButtonHeight, 1);
} }
} }

View File

@ -773,6 +773,8 @@ namespace Nikse.SubtitleEdit.Forms
{ {
string fullFileName = Path.Combine(Path.GetDirectoryName(_bdnFileName), fn); string fullFileName = Path.Combine(Path.GetDirectoryName(_bdnFileName), fn);
if (File.Exists(fullFileName)) if (File.Exists(fullFileName))
{
try
{ {
var temp = new Bitmap(fullFileName); var temp = new Bitmap(fullFileName);
if (temp.Width > maxWidth) if (temp.Width > maxWidth)
@ -780,6 +782,11 @@ namespace Nikse.SubtitleEdit.Forms
totalHeight += temp.Height; totalHeight += temp.Height;
bitmaps.Add(temp); bitmaps.Add(temp);
} }
catch
{
return null;
}
}
} }
Bitmap b = null; Bitmap b = null;