diff options
author | fvogel <fvogelnew1@free.fr> | 2015-06-01 19:44:48 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-06-01 19:44:48 (GMT) |
commit | d7d27ab9c7fae50fe57122d07270c58170f6d40e (patch) | |
tree | 35ddcde90246b1f24ebb34b361fd3bf48f3b5c3b | |
parent | 3613295edb80ce3590a961b0806e87e5ed128998 (diff) | |
download | tk-d7d27ab9c7fae50fe57122d07270c58170f6d40e.zip tk-d7d27ab9c7fae50fe57122d07270c58170f6d40e.tar.gz tk-d7d27ab9c7fae50fe57122d07270c58170f6d40e.tar.bz2 |
Complementary fix for bug [3592454fff] - Don't identify the sash associated to the last visible panebug_3592454fff
-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; |