diff options
author | gcramer <remarcg@gmx.net> | 2017-07-21 14:05:07 (GMT) |
---|---|---|
committer | gcramer <remarcg@gmx.net> | 2017-07-21 14:05:07 (GMT) |
commit | 9663a95c834af85636ea17aaba731f99b05d3cf0 (patch) | |
tree | 523c88962cd33eea288a310fa4af1cb3197bd700 /generic/ttk | |
parent | cc3d2a8d854a057eb322daa8f2a01fb3dca9b20e (diff) | |
download | tk-9663a95c834af85636ea17aaba731f99b05d3cf0.zip tk-9663a95c834af85636ea17aaba731f99b05d3cf0.tar.gz tk-9663a95c834af85636ea17aaba731f99b05d3cf0.tar.bz2 |
Bugfix [4966cad4d4]: Now function NotebookPlaceSlaves() in ttkNotebook.c will regard the active index.
Diffstat (limited to 'generic/ttk')
-rw-r--r-- | generic/ttk/ttkNotebook.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/ttk/ttkNotebook.c b/generic/ttk/ttkNotebook.c index 83d7db9..437ae11 100644 --- a/generic/ttk/ttkNotebook.c +++ b/generic/ttk/ttkNotebook.c @@ -595,8 +595,12 @@ static void NotebookPlaceSlaves(void *recordPtr) Notebook *nb = recordPtr; int currentIndex = nb->notebook.currentIndex; if (currentIndex >= 0) { + int activeIndex = nb->notebook.activeIndex; + int index = (activeIndex >= 0) ? activeIndex : currentIndex; NotebookDoLayout(nb); - NotebookPlaceSlave(nb, currentIndex); + if (index >= 0) { + NotebookPlaceSlave(nb, index); + } } } |