diff options
author | fvogelnew1@free.fr <fvogel> | 2015-06-01 19:44:48 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2015-06-01 19:44:48 (GMT) |
commit | c1cf2ede71019b94964ee3acf2b429efedffd2b3 (patch) | |
tree | 5cc7cab22983fe8ba44c619b5c24884baa7e6b93 | |
parent | b33df2640950ea413e931d4aab6e0dfb0d0b53d3 (diff) | |
download | tk-c1cf2ede71019b94964ee3acf2b429efedffd2b3.zip tk-c1cf2ede71019b94964ee3acf2b429efedffd2b3.tar.gz tk-c1cf2ede71019b94964ee3acf2b429efedffd2b3.tar.bz2 |
Complementary fix for bug [3592454fff] - Don't identify the sash associated to the last visible pane
-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 85ab8b0..fd103b4 100644 --- a/generic/tkPanedWindow.c +++ b/generic/tkPanedWindow.c @@ -2992,6 +2992,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) { @@ -3032,10 +3033,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; |