diff --git a/components/lazreport/source/lr_desgn.pas b/components/lazreport/source/lr_desgn.pas index acb2b92fc0..c271bda4e5 100644 --- a/components/lazreport/source/lr_desgn.pas +++ b/components/lazreport/source/lr_desgn.pas @@ -3404,7 +3404,8 @@ begin sTemplFile + ' (*.frt)|*.frt|' + sLazFormFile + ' (*.lrf)|*.lrf|' + sLazTemplateFile + ' (*.lrt)|*.lrt'; - InitialDir:=ExtractFilePath(ParamStrUTF8(0)); + if InitialDir='' then + InitialDir:=ExtractFilePath(ParamStrUTF8(0)); FileName := CurDocName; FilterIndex := 3; if Execute then