Merge pull request #432 from josephcsible/colortable-save-leading-zeros

Fix leading zeros not being saved to colortables
This commit is contained in:
Zeno Rogue
2025-08-23 20:37:04 +02:00
committed by GitHub
+1 -1
View File
@@ -899,7 +899,7 @@ EX shared_ptr<custom_parameter> param_colortable(colortable& val, const paramete
u->custom_save = [&val] {
bool first = true;
string str;
for(auto v: val) { if(first) first = false; else str += ","; str += itsh(v); }
for(auto v: val) { if(first) first = false; else str += ","; str += itsh6(v); }
return str;
};
u->custom_do_save = [dft, &val] { return val != dft; };