mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 11:36:05 +02:00
codetools: fixed modeswitch
git-svn-id: trunk@21687 -
This commit is contained in:
parent
c286c1ba10
commit
efdffe51ba
@ -2342,7 +2342,7 @@ var
|
|||||||
begin
|
begin
|
||||||
SkipSpace;
|
SkipSpace;
|
||||||
ValStart:=SrcPos;
|
ValStart:=SrcPos;
|
||||||
while (SrcPos<=SrcLen) and (IsWordChar[Src[SrcPos]]) do
|
while (SrcPos<=SrcLen) and (IsIdentChar[Src[SrcPos]]) do
|
||||||
inc(SrcPos);
|
inc(SrcPos);
|
||||||
if CompareUpToken('OBJECTIVEC1',Src,ValStart,SrcPos) then begin
|
if CompareUpToken('OBJECTIVEC1',Src,ValStart,SrcPos) then begin
|
||||||
CompilerModeSwitch:=cmsObjectiveC1;
|
CompilerModeSwitch:=cmsObjectiveC1;
|
||||||
|
@ -177,7 +177,7 @@ function TRegion.GetClipRect : TRect;
|
|||||||
begin
|
begin
|
||||||
if FRegionData.Reference.Allocated
|
if FRegionData.Reference.Allocated
|
||||||
then begin
|
then begin
|
||||||
GetRgnBox(HRGN(FRegionData.Reference.Handle), @Result)
|
GetRgnBox(HRGN(FRegionData.Reference.Handle), @Result);
|
||||||
end
|
end
|
||||||
else begin
|
else begin
|
||||||
if FRegionData.Polygon <> nil
|
if FRegionData.Polygon <> nil
|
||||||
|
Loading…
Reference in New Issue
Block a user