[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] A few XRC assertions
From: |
Vadim Zeitlin |
Subject: |
Re: [lmi] A few XRC assertions |
Date: |
Sat, 23 May 2015 18:53:06 +0200 |
On Sat, 23 May 2015 16:26:52 +0000 "Boutin, Wendy" <address@hidden> wrote:
BW> I'm working with some new product files and came across a
BW> few errors. They seem similar in nature, but have slightly
BW> different messages. I'm using a version of wx from the
BW> 2015-05-16 lmi mailing list post.
BW>
BW> File | New | Database [and Strata]:
BW>
BW> Assertion '!(flags & wxALIGN_RIGHT)' failed
BW> (Horizontal alignment flags are ignored in horizontal sizers).
BW> [file ../src/common/sizer.cpp, line 2100]
BW>
BW> File | New | Rounding:
BW>
BW> Assertion '!(flags & (wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL))' failed
BW> (Vertical alignment flags are ignored with wxEXPAND).
BW> [file ../src/common/sizer.cpp, line 2116]
BW>
BW> All other options in the 'File | New' menu are good.
Thank you for finding those, I was so obnubilated by finding the wrong
flags in the XRC files that I completely forgot that there could be also
wrong instances of using them in the code itself. Additionally, there was
also still an error not caught by the schema (which can't easily check for
this...) in the rounding_view.xrc file where wxALIGN_CENTRE was just used
twice.
All of these errors are corrected by the (totally safe) attached patch,
please apply it to fix the asserts (which are, themselves, harmless, but
definitely annoying).
Thanks again for finding these problems,
VZ
Remove-superfluous-alignment-flags-from-wxSizer-item.patch
Description: Text document