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

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