fix(color): simulator may crash on some setup pages (#6804)

This commit is contained in:
philmoz
2025-11-19 18:41:41 +10:00
committed by GitHub
parent 5160f0a752
commit 9e0c437779
+1 -1
View File
@@ -602,7 +602,7 @@ coord_t SetupLine::showLines(Window* parent, coord_t y, coord_t col2, PaddingSiz
#if !defined(ALL_LANGS)
w = new SetupLine(parent, y, col2, padding, setupLines[i].title, setupLines[i].createEdit);
#else
w = new SetupLine(parent, y, col2, padding, setupLines[i].title(), setupLines[i].createEdit);
w = new SetupLine(parent, y, col2, padding, setupLines[i].title ? setupLines[i].title() : nullptr, setupLines[i].createEdit);
#endif
y += w->height() + padding;
}