SourceEditor, switch tabs correctly on gtk2

git-svn-id: trunk@24233 -
This commit is contained in:
martin 2010-03-26 23:37:09 +00:00
parent 220072f09b
commit 9a7417e467

View File

@ -5267,9 +5267,10 @@ end;
procedure TSourceNotebook.NoteBookDeletePage(Index: Integer);
begin
if PageCount > 1 then
NotebookPages.Delete(Index)
else
if PageCount > 1 then begin
NotebookPages.Delete(Index);
FNoteBook.PageIndex := Min(Index, PageCount);
end else
FNotebook.Visible := False;
end;