mirror of https://github.com/buggins/dlangui.git
fix crash when change font settings
This commit is contained in:
parent
3ac0820b8a
commit
34930457ff
|
@ -412,7 +412,7 @@ private abstract class GLCache
|
||||||
_activePage = null;
|
_activePage = null;
|
||||||
foreach(i; 0 .. _pages.length)
|
foreach(i; 0 .. _pages.length)
|
||||||
if (_pages[i] == page) {
|
if (_pages[i] == page) {
|
||||||
_pages.remove(i);
|
_pages = _pages.remove(i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
destroy(page);
|
destroy(page);
|
||||||
|
|
Loading…
Reference in New Issue