diff options
author | fvogel <fvogelnew1@free.fr> | 2015-06-01 19:32:34 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-06-01 19:32:34 (GMT) |
commit | c4c4c32187400aba8b703658be7142609df84689 (patch) | |
tree | 3b69094a59240ce2dc2a300c54405b14ce57394e /generic | |
parent | 47ff1264914b87d922a13ea6b1a49f99adba53f2 (diff) | |
download | tk-c4c4c32187400aba8b703658be7142609df84689.zip tk-c4c4c32187400aba8b703658be7142609df84689.tar.gz tk-c4c4c32187400aba8b703658be7142609df84689.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.c | 4 |
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; |