Skip to content

Commit

Permalink
Fixed bug that treated reading label placement on last column as inva…
Browse files Browse the repository at this point in the history
…lid.
  • Loading branch information
larspalo committed Jul 6, 2024
1 parent 2a9cf17 commit 6498449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Display of correct default text on setter button elements.
- Crash caused by trying to open recent file that doesn't exist anymore.
- Bug that prevented changing label position by dragging or keys if FreeXPlacement and FreeYPlacement was false.
- Bug that caused a read label placement at the last column to be invalid.

## [0.14.0] - 2024-07-02

Expand Down
2 changes: 1 addition & 1 deletion src/GUILabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void GUILabel::read(wxFileConfig *cfg, Organ *readOrgan) {
cfgBoolValue = cfg->Read("DispAtTopOfDrawstopCol", wxEmptyString);
m_dispAtTopOfDrawstopCol = GOODF_functions::parseBoolean(cfgBoolValue, false);
int col = static_cast<int>(cfg->ReadLong("DispDrawstopCol", 1));
if (col > 0 && col < getOwningPanel()->getDisplayMetrics()->m_dispDrawstopCols) {
if (col > 0 && col <= getOwningPanel()->getDisplayMetrics()->m_dispDrawstopCols) {
m_dispDrawstopCol = col;
}
cfgBoolValue = cfg->Read("DispSpanDrawstopColToRight", wxEmptyString);
Expand Down

0 comments on commit 6498449

Please sign in to comment.