Make sure that after_reading is called when loading a Symbol. This fixes #68

This commit is contained in:
Twan van Laarhoven
2020-06-14 22:21:52 +02:00
parent a7336d66e1
commit 0fc9480586
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -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
+3
View File
@@ -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.
+2
View File
@@ -293,7 +293,9 @@ public:
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();