IDE: source editor SetPageIndex: check if PageIndex=AValue

git-svn-id: trunk@42483 -
This commit is contained in:
mattias 2013-08-24 18:42:17 +00:00
parent d01d5e1399
commit 4a79a421e4

View File

@ -5647,6 +5647,7 @@ var
i: Integer;
n: TComponent;
begin
FPageIndex:=-1;
i := 1;
n := AOwner.FindComponent(NonModalIDEWindowNames[nmiwSourceNoteBookName]);
while (n <> nil) do begin
@ -6396,6 +6397,10 @@ end;
procedure TSourceNotebook.SetPageIndex(const AValue: Integer);
begin
DebugLnEnter(SRCED_PAGES, ['>> TSourceNotebook.SetPageIndex Cur-PgIdx=', PageIndex, ' FPageIndex=', FPageIndex, ' Value=', AValue, ' FUpdateLock=', FUpdateLock]);
if PageIndex = AValue then begin
//debugln(['>> TSourceNotebook.SetPageIndex PageIndex=', PageIndex, ' FPageIndex=', FPageIndex, ' Value=', AValue, ' FUpdateLock=', FUpdateLock]);
exit;
end;
FPageIndex := AValue;
if FUpdateLock = 0 then begin
DebugBoss.LockCommandProcessing;