Cocoa: fix the length of BUTTON_CAPTION_ARRAY in CocoaConst

This commit is contained in:
rich2014 2024-08-22 00:49:33 +08:00
parent ec321189ad
commit 3bdd810b85

View File

@ -164,7 +164,7 @@ end;
function BUTTON_CAPTION_ARRAY: TNSStringArray;
begin
if length(_BUTTON_CAPTION_ARRAY)=0 then begin
setlength( _BUTTON_CAPTION_ARRAY, idButtonNoToAll );
setlength( _BUTTON_CAPTION_ARRAY, idButtonNoToAll+1 );
_BUTTON_CAPTION_ARRAY[idButtonOk]:= LclTitleToNSString( rsMbOK );
_BUTTON_CAPTION_ARRAY[idButtonCancel]:= LclTitleToNSString( rsMbCancel );
_BUTTON_CAPTION_ARRAY[idButtonHelp]:= LclTitleToNSString( rsMbHelp );