summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-06-01 19:32:34 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-06-01 19:32:34 (GMT)
commit1b7bf63f02123f77912d8dde094b3381551a4e7a (patch)
treec1a4a84d3025793b90002b51afeaf6fb59301104
parent172c6cb1f4bcf9336ee3d3cb3677d9d877a5a18e (diff)
downloadtk-1b7bf63f02123f77912d8dde094b3381551a4e7a.zip
tk-1b7bf63f02123f77912d8dde094b3381551a4e7a.tar.gz
tk-1b7bf63f02123f77912d8dde094b3381551a4e7a.tar.bz2
Complementary fix for bug [3592454fff] - Don't identify the sash associated to the last visible pane
-rw-r--r--generic/tkPanedWindow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index d2da227..6a3766b 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -3020,6 +3020,7 @@ PanedWindowIdentifyCoords(
Tcl_Obj *list;
int i, sashHeight, sashWidth, thisx, thisy;
int found, isHandle, lpad, rpad, tpad, bpad;
+ int first, last;
list = Tcl_NewObj();
if (pwPtr->orient == ORIENT_HORIZONTAL) {
@@ -3060,10 +3061,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;