ENH: CLI: allow height shrink when printer switch

to let the error generated at validate
JIRA: no jira

Change-Id: I94db90db858659a9254dfdc0a6eed04fd40d3768
This commit is contained in:
lane.wei 2023-12-05 21:35:41 +08:00 committed by Lane.Wei
parent 59e67c0b10
commit 2631ce1d7c

View File

@ -2794,7 +2794,8 @@ int CLI::run(int argc, char **argv)
if ((old_printable_width > 0)&&(old_printable_depth > 0)&&(old_printable_height > 0))
{
//check the printable size logic
if ((old_printable_width > current_printable_width) || (old_printable_depth > current_printable_depth) || (old_printable_height > current_printable_height))
//if ((old_printable_width > current_printable_width) || (old_printable_depth > current_printable_depth) || (old_printable_height > current_printable_height))
if ((old_printable_width > current_printable_width) || (old_printable_depth > current_printable_depth))
{
BOOST_LOG_TRIVIAL(error) << boost::format("old printable size {%1%, %2%, %3%} is larger than new printable size {%4%, %5%, %6%}, can not print")
%old_printable_width %old_printable_depth %old_printable_height %current_printable_width %current_printable_depth %current_printable_height;