mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
Fix using a deleted theme when running another test
The pointer to and old theme was being used in update_mouse_cursor().
This commit is contained in:
parent
d5d5894df6
commit
6830e0ce94
@ -871,12 +871,11 @@ void set_theme(Theme* theme, const int uiscale)
|
|||||||
{
|
{
|
||||||
old_ui_scale = current_ui_scale;
|
old_ui_scale = current_ui_scale;
|
||||||
current_ui_scale = uiscale;
|
current_ui_scale = uiscale;
|
||||||
|
current_theme = theme;
|
||||||
|
|
||||||
if (theme) {
|
if (theme) {
|
||||||
theme->regenerateTheme();
|
theme->regenerateTheme();
|
||||||
|
|
||||||
current_theme = theme;
|
|
||||||
|
|
||||||
// Set the theme for all widgets
|
// Set the theme for all widgets
|
||||||
details::reinitThemeForAllWidgets();
|
details::reinitThemeForAllWidgets();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user