Menu

#192 Store as attribute' does not work for sizers in C++

closed
0.7.2
2016-11-05
2016-07-12
eanon
No

Hello. When I enable "store as attribute" for a sizer, the type declaration remains in the implementation file (.cpp). So, this variable becomes local and shadows the real declaration as member in the header file (.h).

Example:

// In do_layout() implementation (.cpp):
wxBoxSizer* sizerForIdentity = new wxBoxSizer(wxVERTICAL);

// In protected members of class declaration (.h):
wxBoxSizer* sizerForIdentity;

Discussion

  • Carsten Grohmann

    Hi,

    the bug is fixed in the development branch with 2182:f1f66815ed4c "Fix 'Store as attribute' does not work for sizers in C++ (sf bug #192)"

    The change will be also part of the next official release.

    Thank you for reporting this bug.
    Carsten

     
  • Carsten Grohmann

    • summary: Still declared as local variable in spite of 'store as attribute' option --> Store as attribute' does not work for sizers in C++
    • status: open --> closed
    • assigned_to: Carsten Grohmann
     

Log in to post a comment.