- fix wrong filename of output in glazres, second try.
- fix drawing of ListBox items in glazres (Issue #0027183)

git-svn-id: trunk@47226 -
This commit is contained in:
bart 2014-12-20 15:57:37 +00:00
parent 9a23a0544a
commit b0bddd32ec

View File

@ -237,7 +237,7 @@ var
TheCanvas: TCanvas; TheCanvas: TCanvas;
begin begin
//Objective: draw only the FileName, not the fully qualified path. //Objective: draw only the FileName, not the fully qualified path.
if (odPainted in State) then Exit; //if (odPainted in State) then Exit;
TheCanvas := (Control as TCustomListBox).Canvas; TheCanvas := (Control as TCustomListBox).Canvas;
ItemText := ExtractFileName(FileListBox.Items[Index]); ItemText := ExtractFileName(FileListBox.Items[Index]);
@ -450,7 +450,7 @@ begin
end; end;
end; end;
try try
ResFileStream:=TFileStreamUtf8.Create(ResourceFilename,fmCreate); ResFileStream:=TFileStreamUtf8.Create(FullResourceFileName,fmCreate);
except except
AddMessageFmt(ErrCreate,[ResourceFileName]); AddMessageFmt(ErrCreate,[ResourceFileName]);
exit; exit;