packagetabs: fixed opening wrong file due to wrong page index.

git-svn-id: trunk@50495 -
This commit is contained in:
ondrej 2015-11-24 14:03:36 +00:00
parent 109f61cbec
commit 45d9a68904

View File

@ -761,6 +761,7 @@ begin
if (xOldIndex>=0) and (xOldIndex<>xNewIndex) then
TCustomTabControl(FNotebook).Pages.Move(xOldIndex, xNewIndex);
end;
xEditor.UpdateProjectFile; // updates FNewEditorInfo.PageIndex
Inc(xNewIndex);
xBtn := TPackageTabButton.Create(Self);
xBtn.Height := xLbl.Height;