cores manager ps index out of range bug fix

This commit is contained in:
cpi 2019-08-26 16:11:02 +08:00
parent 228a771184
commit 8f91cfe020

View File

@ -18,7 +18,7 @@ class InfoPageSelector(PageSelector):
def Draw(self):
idx = self._Parent._PsIndex
if idx < len(self._Parent._MyList):
if idx >= 0 and idx < len(self._Parent._MyList):
y = self._Parent._MyList[idx]._PosY+1
h = self._Parent._MyList[idx]._Height -3