Commit 12ee4099 authored by Yuqi Zhang's avatar Yuqi Zhang
Browse files

bug fix

parent 99e2fe64
......@@ -92,6 +92,7 @@ list_insert_cmd *list_generator::gen_insert()
string prev = list.random_get(), id = new_id.get(), content = strRand();
int font = intRand(TOTAL_FONT_TYPE), size = intRand(MAX_FONT_SIZE), color = intRand(MAX_COLOR);
bool bold = boolRand(), italic = boolRand(), underline = boolRand();
if (prev.empty()) prev = "null";
return new list_insert_cmd(type, list, prev, id, content, font, size, color, bold, italic,
underline);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment