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 | 42874b94f43eb79b98a80e6fb88552cce596cf20 (patch) | |
tree | 523c88962cd33eea288a310fa4af1cb3197bd700 /generic/ttk/ttkNotebook.c | |
parent | 03a506ce3f8f464dd35f15e01795f639bd26d7fa (diff) | |
download | tk-42874b94f43eb79b98a80e6fb88552cce596cf20.zip tk-42874b94f43eb79b98a80e6fb88552cce596cf20.tar.gz tk-42874b94f43eb79b98a80e6fb88552cce596cf20.tar.bz2 |
Bugfix [4966cad4d4]: Now function NotebookPlaceSlaves() in ttkNotebook.c will regard the active index.
Diffstat (limited to 'generic/ttk/ttkNotebook.c')
-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); + } } } |