Fixed segfault
This commit is contained in:
parent
ddf2a5c1cd
commit
75421c01fd
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue