Merge pull request #292 from cuu/master

info_page_selector bug fix
This commit is contained in:
GNU 2019-08-26 16:06:23 +08:00 committed by GitHub
commit 4e7bebbdb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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