32 lines
967 B
Diff
32 lines
967 B
Diff
From 96a262ae5869d7f9875c6477cb0b23939d84ec12 Mon Sep 17 00:00:00 2001
|
|
From: gcramer <remarcg@gmx.net>
|
|
Date: Fri, 21 Jul 2017 14:05:07 +0000
|
|
Subject: [PATCH 030/693] Bugfix [4966cad4d4]: Now function
|
|
NotebookPlaceSlaves() in ttkNotebook.c will regard the active index.
|
|
|
|
---
|
|
generic/ttk/ttkNotebook.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/generic/ttk/ttkNotebook.c b/generic/ttk/ttkNotebook.c
|
|
index 83d7db9c5..437ae11a0 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);
|
|
+ }
|
|
}
|
|
}
|
|
|
|
--
|
|
2.19.1
|
|
|