mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 22:18:30 +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;
|
||||
current_ui_scale = uiscale;
|
||||
current_theme = theme;
|
||||
|
||||
if (theme) {
|
||||
theme->regenerateTheme();
|
||||
|
||||
current_theme = theme;
|
||||
|
||||
// Set the theme for all widgets
|
||||
details::reinitThemeForAllWidgets();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user