Merge tag '12.2' into 12

This commit is contained in:
Miguel Horta
2022-04-12 12:30:17 +01:00
80 changed files with 1652 additions and 523 deletions

View File

@@ -358,6 +358,10 @@ void OneOfManySettingDesc::FormatValue(char *buf, const char *last, const void *
void ManyOfManySettingDesc::FormatValue(char *buf, const char *last, const void *object) const
{
uint bitmask = (uint)this->Read(object);
if (bitmask == 0) {
buf[0] = '\0';
return;
}
bool first = true;
for (uint id : SetBitIterator(bitmask)) {
if (!first) buf = strecpy(buf, "|", last);