mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 02:28:04 +02:00
ide: use relative path in .rc files (iow no path) (#0012402)
git-svn-id: trunk@17014 -
This commit is contained in:
parent
5d17b30514
commit
33015ac694
@ -127,6 +127,7 @@ function TProjectIcon.UpdateResources(AResources: TAbstractProjectResources;
|
||||
const MainFilename: string): Boolean;
|
||||
var
|
||||
AResource: TStream;
|
||||
IconName: String;
|
||||
begin
|
||||
Result := True;
|
||||
|
||||
@ -148,7 +149,11 @@ begin
|
||||
// but it does not work
|
||||
|
||||
if CreateIconFile then
|
||||
AResources.AddSystemResource(sIcon + Format(' "%s"', [StringReplace(icoFileName, '\', '\\', [rfReplaceAll])]))
|
||||
begin
|
||||
//IconName := StringReplace(icoFileName, '\', '\\', [rfReplaceAll]);
|
||||
IconName := ExtractFileName(icoFileName);
|
||||
AResources.AddSystemResource(sIcon + ' "' + IconName + '"');
|
||||
end
|
||||
else
|
||||
Result := False;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user