You've already forked lazarus-ccr
LazEdit: picturedlgform.pp: convert filename from Utf-8 to system encoding when calling GetImageSize
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2596 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -86,7 +86,8 @@ begin
|
|||||||
Fn := OpenPictureDialog.FileName;
|
Fn := OpenPictureDialog.FileName;
|
||||||
FInitialDir := ExtractFileDir(Fn);
|
FInitialDir := ExtractFileDir(Fn);
|
||||||
SrcEdit.Text := ExtractFileName(Fn);
|
SrcEdit.Text := ExtractFileName(Fn);
|
||||||
if GetImageSize(Fn, W, H) then
|
//GetImageSize uses system encoding
|
||||||
|
if GetImageSize(Utf8ToSys(Fn), W, H) then
|
||||||
begin
|
begin
|
||||||
WidthEdit.Text := IntToStr(W);
|
WidthEdit.Text := IntToStr(W);
|
||||||
HeightEdit.Text := IntToStr(H);
|
HeightEdit.Text := IntToStr(H);
|
||||||
|
Reference in New Issue
Block a user