mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:19:16 +02:00
Cocoa: fix the length of BUTTON_CAPTION_ARRAY in CocoaConst
This commit is contained in:
parent
0b2e8cf5ed
commit
6fb52e6528
@ -241,7 +241,7 @@ end;
|
|||||||
function BUTTON_CAPTION_ARRAY: TNSStringArray;
|
function BUTTON_CAPTION_ARRAY: TNSStringArray;
|
||||||
begin
|
begin
|
||||||
if length(_BUTTON_CAPTION_ARRAY)=0 then 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[idButtonOk]:= LclTitleToNSString( rsMbOK );
|
||||||
_BUTTON_CAPTION_ARRAY[idButtonCancel]:= LclTitleToNSString( rsMbCancel );
|
_BUTTON_CAPTION_ARRAY[idButtonCancel]:= LclTitleToNSString( rsMbCancel );
|
||||||
_BUTTON_CAPTION_ARRAY[idButtonHelp]:= LclTitleToNSString( rsMbHelp );
|
_BUTTON_CAPTION_ARRAY[idButtonHelp]:= LclTitleToNSString( rsMbHelp );
|
||||||
|
Loading…
Reference in New Issue
Block a user