Skip to content

Commit

Permalink
Fixes from Sieghard for fontlist.pas and msefiledialogx.pas
Browse files Browse the repository at this point in the history
  • Loading branch information
fredvs committed May 9, 2024
1 parent e026fb4 commit 95e0554
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions lib/common/dialogs/fontlist.pas
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,8 @@
UNTIL s = '';
END;

{$else}
INTERFACE
IMPLEMENTATION
{$endif}
END.
8 changes: 2 additions & 6 deletions lib/common/dialogs/msefiledialogx.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2323,8 +2323,7 @@ procedure tfiledialogxfo.oncellev(const Sender: TObject; var info: celleventinfo

if (info.eventkind = cek_buttonrelease) then
begin
if (ss_double in info
.mouseeventinfopo^.shiftstate) then
if (ss_double in info.mouseeventinfopo^.shiftstate) then
okonexecute(Sender)
else
begin
Expand Down Expand Up @@ -3118,11 +3117,8 @@ function tfiledialogxcontroller.Execute (dialogkind: filedialogkindty; const aca
////////////////////////////////////
if assigned (providedform) then begin
fo:= providedform; fo.setposition (DialogPlacement);
writeln ('Using provided form');
end
else begin fo:= tfiledialogxfo.create ({?nil?}fowner, DialogPlacement);
writeln ('Using NEW form');
end;
else fo:= tfiledialogxfo.create ({?nil?}fowner, DialogPlacement);
fwindowrect:= fo.widgetrect;
////////////////////////////////////
// fo:= tfiledialogxfo.create(nil);
Expand Down

0 comments on commit 95e0554

Please sign in to comment.