mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:59:06 +02:00
LazReport, fix image exporter filename, from willians cleyton, issue #27986
git-svn-id: trunk@48888 -
This commit is contained in:
parent
28089b25f7
commit
bfe307d647
@ -12,7 +12,7 @@ unit LR_e_img;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, LR_Class, Graphics;
|
||||
Classes, SysUtils, LR_Class, Graphics, LazUtf8Classes;
|
||||
|
||||
type
|
||||
TfrImageExport = class(TComponent)
|
||||
@ -47,7 +47,7 @@ implementation
|
||||
constructor TfrImageExportFilter.Create(AStream: TStream);
|
||||
begin
|
||||
inherited Create(AStream);
|
||||
FFileName := TFileStream(AStream).FileName;
|
||||
FFileName := TFileStreamUtf8(AStream).FileName;
|
||||
FFileExt := LowerCase(ExtractFileExt(FFileName));
|
||||
FFileName := ChangeFileExt(FFileName, '');
|
||||
FZoom := 1;
|
||||
|
Loading…
Reference in New Issue
Block a user