Skip to content

Commit

Permalink
Fixed sizer flag related warnings for wx 3.2+ builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
larspalo committed Jun 9, 2024
1 parent ebbdc50 commit 8fbb673
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Re-worked the dialog showing waveform overlay at looppoints to be independent (modeless). (TODO)
- Batch process naming "Kill" loops/cues to "Remove" instead.

### Fixed

- Sizer flag warnings for wxWidgets 3.2+ builds.

## [0.10.1] - 2024-06-06

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/BatchProcessDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void BatchProcessDialog::CreateControls() {
wxSize(-1,150),
wxTE_READONLY|wxTE_MULTILINE
);
staticStatusBox->Add(m_statusProgress, 1, wxEXPAND|wxALIGN_CENTER|wxALL, 5);
staticStatusBox->Add(m_statusProgress, 1, wxEXPAND|wxALL, 5);

// Horizontal sizer for buttons
wxBoxSizer* m_buttonRow = new wxBoxSizer(wxHORIZONTAL);
Expand Down
8 changes: 4 additions & 4 deletions src/CutNFadeDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void CutNFadeDialog::CreateControls() {
2000,
m_cutStart
);
firstRow->Add(cutStartSpin, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5);
firstRow->Add(cutStartSpin, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

// Second row
wxBoxSizer* secondRow = new wxBoxSizer(wxHORIZONTAL);
Expand Down Expand Up @@ -152,7 +152,7 @@ void CutNFadeDialog::CreateControls() {
2000,
m_fadeStart
);
secondRow->Add(fadeStartSpin, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5);
secondRow->Add(fadeStartSpin, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

// Third row
wxBoxSizer* thirdRow = new wxBoxSizer(wxHORIZONTAL);
Expand Down Expand Up @@ -181,7 +181,7 @@ void CutNFadeDialog::CreateControls() {
2000,
m_cutEnd
);
thirdRow->Add(cutEndSpin, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5);
thirdRow->Add(cutEndSpin, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

// Fourth row
wxBoxSizer* fourthRow = new wxBoxSizer(wxHORIZONTAL);
Expand Down Expand Up @@ -210,7 +210,7 @@ void CutNFadeDialog::CreateControls() {
2000,
m_fadeEnd
);
fourthRow->Add(fadeEndSpin, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5);
fourthRow->Add(fadeEndSpin, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

// A horizontal line before the OK and Cancel buttons
wxStaticLine *line = new wxStaticLine(
Expand Down

0 comments on commit 8fbb673

Please sign in to comment.