Skip to content

Commit

Permalink
Fix more int conversions in FlatNotebook
Browse files Browse the repository at this point in the history
Fixes: #2682
  • Loading branch information
swt2c committed Jan 29, 2025
1 parent 75c27ac commit e93b558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wx/lib/agw/flatnotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3728,7 +3728,7 @@ def DrawTab(self, pageContainer, dc, posx, tabIdx, tabWidth, tabHeight, btnStatu

imageXOffset = textOffset - 16 - padding
pc._ImageList.Draw(pc._pagesInfoVec[tabIdx].GetImageIndex(), dc,
posx + imageXOffset, imageYCoord,
int(posx + imageXOffset), int(imageYCoord),
wx.IMAGELIST_DRAW_TRANSPARENT, True)

pageTextColour = pc._pParent.GetPageTextColour(tabIdx)
Expand Down Expand Up @@ -3855,7 +3855,7 @@ def DrawTabs(self, pageContainer, dc):
posy = (pc.HasAGWFlag(FNB_BOTTOM) and [0] or [VERTICAL_BORDER_PADDING])[0]

pc._pagesInfoVec[i].SetPosition(wx.Point(posx, posy))
pc._pagesInfoVec[i].SetSize(wx.Size(tabWidth, tabHeight))
pc._pagesInfoVec[i].SetSize(wx.Size(int(tabWidth), int(tabHeight)))

posx += tabWidth

Expand Down

0 comments on commit e93b558

Please sign in to comment.