wxGridBagsizer error

Post here wxCrafter related issues / features / bugs
evstevemd
CodeLite Guru
Posts: 352
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

wxGridBagsizer error

Post by evstevemd »

What it currently does

Code: Select all

wxGridBagSizer* gridBagSizer9 = new wxGridBagSizer(0, 0);
 gridBagSizer9->AddGrowableCol(1);
//other grid code follows
This causes assert error (not fatal yet)

Code: Select all

/src/common/sizer.cpp(1979): assert "!m_cols || idx < (size_t)m_cols" failed in AddGrowableCol(): invalid column index
adding line

Code: Select all

gridBagSizer9->AddGrowableCol(1);
at the end of grid operations gridBagSizer9 resolves the issue!

CodeLite 15.x
CodeLite is awesome, I just Love it!

smitchell
CodeLite Curious
Posts: 6
Joined: Mon Jun 10, 2013 4:55 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxGridBagsizer error

Post by smitchell »

Seeing same problem here with wxGridBagSizer
CL 5.2, wxWidgets 2.94, MinGW 4.7.1, wxCrafter 1.2, Windows 7-x64

Code: Select all

Assert:  ../src/common/sizer.cpp(1956): assert "!m_cols || idx < (size_t)m_cols" failed in AddGrowableCol(): invalid column index.
From my wxCrafter generated gui.cpp, the offending lines are the AddGrowableCol() calls ...

Code: Select all

    wxGridBagSizer* gridBagSizerSourceDescription = new wxGridBagSizer(0, 0);
    gridBagSizerSourceDescription->AddGrowableCol(1);
    gridBagSizerSourceDescription->AddGrowableCol(4);
    gridBagSizerSourceDescription->AddGrowableRow(4);
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxGridBagsizer error

Post by eranif »

Thanks for reporting this, it is now fixed

Eran
Make sure you have read the HOW TO POST thread
smitchell
CodeLite Curious
Posts: 6
Joined: Mon Jun 10, 2013 4:55 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxGridBagsizer error

Post by smitchell »

Thanks for the quick response!
I'll be watching for the wxC 1.3 release.
Post Reply