Fix CHECK in imgtool

This commit is contained in:
Matt Pharr 2023-05-12 05:31:38 -07:00
parent d250ece5d5
commit c4baa53404

View file

@ -646,7 +646,7 @@ int splitn(std::vector<std::string> args) {
result.SetChannels({x, y}, desc, {rgb.r, rgb.g, rgb.b});
};
CHECK_LT(crops.size(), sizeof(edges) / sizeof(edges[0]));
CHECK_LE(crops.size(), sizeof(edges) / sizeof(edges[0]));
ImageChannelDesc cropDesc = cropsImage.GetChannelDesc({"R", "G", "B"});
CHECK(bool(cropDesc));