This line of code
wxCPFatturato= new wxChartPanel(wxPGrafico);
Where wxPGrafico is a wxPanel, causes this error:
../src/gtk/bitmap.cpp(541): assert ""width > 0 && height > 0"" failed in Create(): invalid bitmap size
This happens with the last wxWidgets library. How can I resolve the problem?
[Solved] wxChartPanel error on create
-
- Earned some good credits
- Posts: 131
- Joined: Mon Jul 17, 2006 4:57 pm
[Solved] wxChartPanel error on create
Last edited by mrdebug on Fri Apr 08, 2016 7:00 am, edited 1 time in total.
-
- Part Of The Furniture
- Posts: 4204
- Joined: Sun Jan 03, 2010 5:45 pm
Re: wxChartPanel error on create
Something like this should fix it:
https://github.com/pbfordev/wxFreeChart ... 872d6ffb4e
https://github.com/pbfordev/wxFreeChart ... 872d6ffb4e
-
- Earned some good credits
- Posts: 131
- Joined: Mon Jul 17, 2006 4:57 pm
Re: wxChartPanel error on create
Perfect!