Fixed segfault

This commit is contained in:
Yousef Khadadeh 2026-05-18 11:48:31 +03:00
parent ddf2a5c1cd
commit 75421c01fd

View file

@ -95,8 +95,10 @@ void DrawingProgramSelection::phone_selection_gui(PhoneDrawingProgramScreen& t)
}
Vector4f* DrawingProgramSelection::color_picker_color(Vector4f* oldColor) {
if(oldColor == &strokeColorChangeData.newColor)
return oldColor;
if(is_something_selected()) {
if(oldColor == &strokeColorChangeData.newColor)
return oldColor;
}
return nullptr;
}