Fix display of resolution in burn-in - thx David :)

Fix #8691
This commit is contained in:
Nikolaj Olsson 2024-07-31 16:24:19 +02:00
parent a0d535b584
commit 2d544630de
2 changed files with 3 additions and 3 deletions

View File

@ -10,13 +10,13 @@ namespace Nikse.SubtitleEdit.Core.Common
public int Height { get; set; }
public int Width { get; set; }
public Dimension(int height, int width) => (Height, Width) = (height, width);
public Dimension(int width, int height) => (Width, Height) = (width, height);
/// <summary>
/// Returns a string representation of the Dimension object, representing its height and width.
/// </summary>
/// <returns>A string representation of the Dimension object, in the format "height x width".</returns>
public override string ToString() => $"{Height}x{Width}";
public override string ToString() => $"{Width}x{Height}";
public bool Equals(Dimension other) => Height == other.Height && Width == other.Width;
public override bool Equals(object obj) => obj is Dimension other && Equals(other);

View File

@ -70,7 +70,7 @@ namespace Nikse.SubtitleEdit.Core.Common
int.TryParse(parts[0], out var w) &&
int.TryParse(parts[1], out var h))
{
info.Dimension = new Dimension(h, w);
info.Dimension = new Dimension(w, h);
}
}