rich label: remove leftover debug_print

This commit is contained in:
Subhraman Sarkar 2024-10-01 12:54:47 +05:30
parent a7420b80ea
commit 5e50ab2bf1

View file

@ -133,7 +133,7 @@ void rich_label::add_image(config& curr_item, std::string name, std::string alig
}
if (align == "right") {
curr_item["x"] = floating ? "(debug_print('fimg, w', width) - image_width - img_x)" : "(width - image_width - pos_x)";
curr_item["x"] = floating ? "(width - image_width - img_x)" : "(width - image_width - pos_x)";
} else if (align == "middle" || align == "center") {
// works for single image only
curr_item["x"] = floating ? "(img_x + (width - image_width)/2.0)" : "(pos_x + (width - image_width)/2.0)";