mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
Make sure that after_reading is called when loading a Symbol. This fixes #68
This commit is contained in:
@@ -14,6 +14,7 @@ Bug fixes:
|
|||||||
* Fixed: multiple keywords that matched in the same place both showed reminder text. (#70)
|
* 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.
|
Now, when there are overlapping matches the longest one is used.
|
||||||
* Fixed: Slice Image window defaulting to Force to Fit (#69)
|
* Fixed: Slice Image window defaulting to Force to Fit (#69)
|
||||||
|
* Fixed: Wide set symbols being shrunk down (#68)
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
-- 2.1.0, 2020-06-01
|
-- 2.1.0, 2020-06-01
|
||||||
|
|||||||
@@ -335,6 +335,9 @@ void Symbol::after_reading(Version v) {
|
|||||||
SymbolGroup::after_reading(v);
|
SymbolGroup::after_reading(v);
|
||||||
updateBounds();
|
updateBounds();
|
||||||
}
|
}
|
||||||
|
void after_reading(Symbol& symbol, Version v) {
|
||||||
|
symbol.after_reading(v);
|
||||||
|
}
|
||||||
|
|
||||||
double Symbol::aspectRatio() const {
|
double Symbol::aspectRatio() const {
|
||||||
// Margin between the edges and the symbol.
|
// Margin between the edges and the symbol.
|
||||||
|
|||||||
@@ -293,7 +293,9 @@ public:
|
|||||||
|
|
||||||
DECLARE_REFLECTION_OVERRIDE();
|
DECLARE_REFLECTION_OVERRIDE();
|
||||||
void after_reading(Version) override;
|
void after_reading(Version) override;
|
||||||
|
friend void after_reading(Symbol&, Version);
|
||||||
};
|
};
|
||||||
|
void after_reading(Symbol&, Version);
|
||||||
|
|
||||||
/// A default symbol: a square
|
/// A default symbol: a square
|
||||||
SymbolP default_symbol();
|
SymbolP default_symbol();
|
||||||
|
|||||||
Reference in New Issue
Block a user