summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-06-01 19:40:27 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-06-01 19:40:27 (GMT)
commitb450b56f35261351de97cfe31f814568e6d68f6a (patch)
tree5028b3cce56f5acb0f743c9912dcf558e1017134 /generic
parent9cb6db3c5911d701d13fbe2bed6f21d7cabae4b0 (diff)
parentc4c4c32187400aba8b703658be7142609df84689 (diff)
downloadtk-b450b56f35261351de97cfe31f814568e6d68f6a.zip
tk-b450b56f35261351de97cfe31f814568e6d68f6a.tar.gz
tk-b450b56f35261351de97cfe31f814568e6d68f6a.tar.bz2
Complementary fix for bug [3592454fff] - Don't identify the sash associated to the last visible pane
Diffstat (limited to 'generic')
-rw-r--r--generic/tkPanedWindow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 74c9999..f84a34f 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -3026,6 +3026,7 @@ PanedWindowIdentifyCoords(
{
int i, sashHeight, sashWidth, thisx, thisy;
int found, isHandle, lpad, rpad, tpad, bpad;
+ int first, last;
if (pwPtr->orient == ORIENT_HORIZONTAL) {
if (Tk_IsMapped(pwPtr->tkwin)) {
@@ -3065,10 +3066,11 @@ PanedWindowIdentifyCoords(
lpad = rpad = 0;
}
+ GetFirstLastVisiblePane(pwPtr, &first, &last);
isHandle = 0;
found = -1;
for (i = 0; i < pwPtr->numSlaves - 1; i++) {
- if (pwPtr->slaves[i]->hide) {
+ if (pwPtr->slaves[i]->hide || i == last) {
continue;
}
thisx = pwPtr->slaves[i]->sashx;