mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
parent
a0d535b584
commit
2d544630de
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user