Fix: String Offset Assert in Color Picker #117455

Merged
Harley Acheson merged 1 commits from Harley/blender:PickerStringAssert into main 2024-01-23 17:40:05 +01:00

1 Commits

Author SHA1 Message Date
Harley Acheson d17df2d1d0 Fix: String Offset Assert in Color Picker
Dragging on a color value slider in the color picker will assert for
an invalid string offset. We now using std::string for uiBut->str, the
string is empty and we are checking against str[1]. This replaces that
with an std::basic_string::find which handles this fine.
2024-01-23 08:38:25 -08:00