Skip to content

Commit

Permalink
Make sure that after_reading is called when loading a Symbol. This fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
twanvl committed Jun 14, 2020
1 parent a7336d6 commit 0fc9480
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Bug fixes:
* Fixed: multiple keywords that matched in the same place both showed reminder text. (#70)
Now, when there are overlapping matches the longest one is used.
* Fixed: Slice Image window defaulting to Force to Fit (#69)
* Fixed: Wide set symbols being shrunk down (#68)

------------------------------------------------------------------------------
-- 2.1.0, 2020-06-01
Expand Down
3 changes: 3 additions & 0 deletions src/data/symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ void Symbol::after_reading(Version v) {
SymbolGroup::after_reading(v);
updateBounds();
}
void after_reading(Symbol& symbol, Version v) {
symbol.after_reading(v);
}

double Symbol::aspectRatio() const {
// Margin between the edges and the symbol.
Expand Down
2 changes: 2 additions & 0 deletions src/data/symbol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ class Symbol : public SymbolGroup {

DECLARE_REFLECTION_OVERRIDE();
void after_reading(Version) override;
friend void after_reading(Symbol&, Version);
};
void after_reading(Symbol&, Version);

/// A default symbol: a square
SymbolP default_symbol();
Expand Down

0 comments on commit 0fc9480

Please sign in to comment.