From 7f2d7f576a411ccda87b1f92aaa60c3f726f343b Mon Sep 17 00:00:00 2001 From: Ilya Sosnovsky Date: Tue, 31 Oct 2017 14:39:00 +0300 Subject: [PATCH] Fix V3127 Two similar code fragments were found. Perhaps, this is a typo and 'Y' variable should be used instead of 'X' VocaluxeLib CSingNotes.cs 117 --- VocaluxeLib/Menu/SingNotes/CSingNotes.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VocaluxeLib/Menu/SingNotes/CSingNotes.cs b/VocaluxeLib/Menu/SingNotes/CSingNotes.cs index 2f9f7d60..12b626db 100644 --- a/VocaluxeLib/Menu/SingNotes/CSingNotes.cs +++ b/VocaluxeLib/Menu/SingNotes/CSingNotes.cs @@ -114,7 +114,7 @@ namespace VocaluxeLib.Menu.SingNotes else { _Rect.X = PlayerNotes.Select(bp => bp.Rect.X).Min(); - _Rect.Y = PlayerNotes.Select(bp => bp.Rect.X).Min(); + _Rect.Y = PlayerNotes.Select(bp => bp.Rect.Y).Min(); _Rect.Right = PlayerNotes.Select(bp => bp.Rect.Right).Max(); _Rect.Bottom = PlayerNotes.Select(bp => bp.Rect.Bottom).Max(); _Rect.Z = PlayerNotes.Select(bp => bp.Rect.Z).Average(); @@ -163,4 +163,4 @@ namespace VocaluxeLib.Menu.SingNotes public void ResizeElement(int stepW, int stepH) {} #endregion ThemeEdit } -} \ No newline at end of file +}