Invalid bitmap size in wxImageList assert fired #971
Closed
Comments
Output: |
stef145g
added a commit
that referenced
this issue
Dec 27, 2016
stef145g
added a commit
that referenced
this issue
Dec 28, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This assertion is seen in Issue #917 and #957 for Arch Linux systems.
I believe this is caused by the pie_chart_png.h file only having 12 pixels for the height, instead of 16 pixels as requested by the icon size.
PROBLEM:
Assertion is fired from wxWidgets
`ASSERT INFO: ./src/generic/imaglist.cpp(66): assert "(bitmap.GetWidth() >= m_width && bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)" failed in Add(): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.
[1] wxGenericImageList::Add(wxBitmap const&)
INVESTIGATION:
In moneymanagerex/src/images_list.cpp, add printf("Height: %d Width:%d\n", img.second.GetHeight(), img.second.GetWidth()); to line 170. The height for the pie chart entry in navtree_images() will be 12
TEMPORARY FIX:
Change line 113 in moneymanagerex/src/images_list.cpp to have png::BUDGET at the end.
SUGGESTION:
Have a check at line 170 to check that the icon height and width matches the required icon size. Otherwise, an empty or debug icon should be displayed.
The text was updated successfully, but these errors were encountered: