Skip to content

Commit

Permalink
Include native formats in possibleInputFormats
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Jul 13, 2024
1 parent 3e6f8d3 commit 2103e19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ class Converter
inputFormats.push_back(formats.first);
}
}
for(const std::string& format : supportedFormats)
{
if(!inputFormats.contains(format))
{
inputFormats.push_back(format);
}
}
return inputFormats;
}
};
2 changes: 1 addition & 1 deletion utils/ippclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ int main(int argc, char** argv)
print_if_set("Settable attributes:", join_string(printer.settableAttributes(), "\n"));
print_if_set("Document formats (native):", join_string(printer.documentFormats(), "\n"));
print_if_set("Document formats (guessed):", join_string(printer.additionalDocumentFormats(), "\n"));
print_if_set("Document formats (with conversion)", join_string(printer.possibleInputFormats(), "\n"));
print_if_set("Document formats (with conversion):", join_string(printer.possibleInputFormats(), "\n"));
}
else if(args.subCommand() == "identify")
{
Expand Down

0 comments on commit 2103e19

Please sign in to comment.