Core/Utility: Fix font crash

Happened when the atlas was resizing while updating the text drawer, the
old invalid pointer was kept (now a dangling pointer).


Former-commit-id: d50153f81f1f2bdd80cfdac9dcee85eb7c28c35e
This commit is contained in:
Lynix
2015-08-17 13:54:07 +02:00
parent 4d89b7bd4d
commit 21ad09d626
4 changed files with 26 additions and 4 deletions

View File

@@ -454,7 +454,7 @@ void NzFont::OnAtlasLayerChange(const NzAbstractAtlas* atlas, NzAbstractImage* o
#endif
// Pour faciliter le travail des ressources qui nous écoutent
OnFontAtlasLayerChanged(this);
OnFontAtlasLayerChanged(this, oldLayer, newLayer);
}
void NzFont::OnAtlasRelease(const NzAbstractAtlas* atlas)