aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-02-10 15:01:50 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-02-10 15:01:50 +0200
commitc027cee20aabc6edfcc80b6f336911ce1c5eb1fb (patch)
tree3dfd5cc599920b5c5db46710f38a775fc6538a60 /Software/Visual_Studio
parent4a975ab371e8c46f5f16eda9251a81edad1334d6 (diff)
downloadTango-c027cee20aabc6edfcc80b6f336911ce1c5eb1fb.tar.gz
Tango-c027cee20aabc6edfcc80b6f336911ce1c5eb1fb.zip
Fixed a small issue with ppc update touch monitor detection.
Diffstat (limited to 'Software/Visual_Studio')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs
index 55c60058b..eb8d61a6b 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs
@@ -53,7 +53,7 @@ namespace Tango.PPC.Updater
var screens = System.Windows.Forms.Screen.AllScreens;
//Search for the vertical touch monitor.
- var touch_screen = screens.Where(x => x.Bounds.Height > x.Bounds.Width).Last();
+ var touch_screen = screens.Where(x => x.Bounds.Height > x.Bounds.Width).LastOrDefault();
if (touch_screen != null)
{