From 7abe6f99a48fe5dfaab6649fe9a0301eabe8610a Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <quaritsch@ivt.tugraz.at>
Date: Thu, 16 Feb 2023 11:55:38 +0100
Subject: [PATCH] show loss map for gears 1 and higher

---
 VECTO/GUI/GearboxForm.vb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VECTO/GUI/GearboxForm.vb b/VECTO/GUI/GearboxForm.vb
index 1bfd5ca833..74aca6f0da 100644
--- a/VECTO/GUI/GearboxForm.vb
+++ b/VECTO/GUI/GearboxForm.vb
@@ -774,7 +774,7 @@ Public Class GearboxForm
 
             If File.Exists(path) Then shiftPolygon = ShiftPolygonReader.ReadFromFile(path)
             
-            if LvGears.SelectedItems.Count > 0 AndAlso LvGears.SelectedIndices(0) > 1 Then
+            if LvGears.SelectedItems.Count > 0 AndAlso LvGears.SelectedIndices(0) > 0 Then
                 lossmap = TransmissionLossMapReader.ReadFromFile(FileRepl(LvGears.SelectedItems(0).SubItems(GearboxTbl.LossMapEfficiency).Text, GetPath(_gbxFile)), 
                                                                           LvGears.SelectedItems(0).SubItems(GearboxTbl.Ratio).Text.ToDouble(),"gear plot")
             End If
-- 
GitLab