You've already forked lazarus-ccr
jvcllaz: Fix JvId3v2 demo crashing when tags are deleted.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6991 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -12,7 +12,7 @@ object JvID3v2EditForm: TJvID3v2EditForm
|
|||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poMainFormCenter
|
Position = poMainFormCenter
|
||||||
LCLVersion = '2.0.2.0'
|
LCLVersion = '2.1.0.0'
|
||||||
object lsbNavigator: TListBox
|
object lsbNavigator: TListBox
|
||||||
Left = 4
|
Left = 4
|
||||||
Height = 479
|
Height = 479
|
||||||
|
@ -365,7 +365,10 @@ var
|
|||||||
OldYear, Month, Day: Word;
|
OldYear, Month, Day: Word;
|
||||||
begin
|
begin
|
||||||
DecodeDate(ADateTime, OldYear, Month, Day);
|
DecodeDate(ADateTime, OldYear, Month, Day);
|
||||||
Result := EncodeDate(NewYear, Month, Day);
|
if NewYear <= 0 then
|
||||||
|
Result := 0
|
||||||
|
else
|
||||||
|
Result := EncodeDate(NewYear, Month, Day);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TJvID3v2EditForm.CtrlsToTag;
|
procedure TJvID3v2EditForm.CtrlsToTag;
|
||||||
|
Reference in New Issue
Block a user