1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Johannes Schauer <j.schauer@email.de>
Date: Mon, 2 Feb 2015 11:23:30 +0100
Subject: do not require the file extension to be pdf
---
main.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.cpp b/main.cpp
index 321ecc4..0a61396 100644
--- a/main.cpp
+++ b/main.cpp
@@ -92,9 +92,9 @@ int main(int argc, char *argv[])
debug = DebugShowTextsAndYX;
else if (optionsOK && arg == "--")
optionsOK = false;
- else if (filename1.isEmpty() && arg.toLower().endsWith(".pdf"))
+ else if (filename1.isEmpty())
filename1 = arg;
- else if (filename2.isEmpty() && arg.toLower().endsWith(".pdf"))
+ else if (filename2.isEmpty())
filename2 = arg;
else
out << "unrecognized argument '" << arg << "'\n";
|