Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rotations.py - Cleanup BoxSizer flags #434

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

chmorgan
Copy link
Collaborator

@chmorgan chmorgan commented Apr 3, 2024

Remove inactive wx.ALIGN_CENTER_VERTICAL flags on elem…ents inside of vertical BoxSizers

The flag produces an assertion error as only horizontal alignment is possible inside of vertical sizers.

Assertion output:

Traceback (most recent call last):
File "/Users/cmorgan/Documents/KiCad/8.0/scripting/plugins/kicad-jlcpcb-tools/mainwindow.py", line 883, in manage_rotations
RotationManagerDialog(self, "").ShowModal()
File "/Users/cmorgan/Documents/KiCad/8.0/scripting/plugins/kicad-jlcpcb-tools/rotations.py", line 89, in init
sizer_right.Add(correction_label, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
wx._core.wxAssertionError: C++ assertion "CheckSizerFlags(!((flags) & (wxALIGN_CENTRE_VERTICAL)))" failed at ./src/common/sizer.cpp(2273) in DoInsert(): wxALIGN_CENTRE_VERTICAL will be ignored in this sizer: only horizontal alignment flags can be used in vertical sizers

…ents inside of vertical BoxSizers

The flag produces an assertion error as only horizontal alignment is possible inside of vertical sizers.

Assertion output:

Traceback (most recent call last):
  File "/Users/cmorgan/Documents/KiCad/8.0/scripting/plugins/kicad-jlcpcb-tools/mainwindow.py", line 883, in manage_rotations
    RotationManagerDialog(self, "").ShowModal()
  File "/Users/cmorgan/Documents/KiCad/8.0/scripting/plugins/kicad-jlcpcb-tools/rotations.py", line 89, in __init__
    sizer_right.Add(correction_label, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
wx._core.wxAssertionError: C++ assertion "CheckSizerFlags(!((flags) & (wxALIGN_CENTRE_VERTICAL)))" failed at ./src/common/sizer.cpp(2273) in DoInsert(): wxALIGN_CENTRE_VERTICAL will be ignored in this sizer: only horizontal alignment flags can be used in vertical sizers
@Bouni Bouni changed the title rotations.py - Remove inactive wx.ALIGN_CENTER_VERTICAL flags on elem… rotations.py - Cleanup BoxSizer flags Apr 3, 2024
@Bouni Bouni merged commit efbe53b into Bouni:main Apr 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants