summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docview/src/frm_main.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/docview/src/frm_main.pas b/docview/src/frm_main.pas
index 4630ea6f..0089a865 100644
--- a/docview/src/frm_main.pas
+++ b/docview/src/frm_main.pas
@@ -3396,7 +3396,9 @@ begin
begin
showtopic := not gCommandLineParams.IsParam('k');
{ is the first parameter a known docview help, or some addition parameter }
- if Pos(ctiCommandLineParamPrefix, ParamStr(1)) = 0 then
+ if Pos(ctiCommandLineParamPrefix, ParamStr(1)) = 1 then
+ // command line parameter order seems wrong, so do nothing
+ else
OpenFile(ParamStr(1), '', showtopic);
end;
end;