diff options
Diffstat (limited to 'src/w32term.c')
-rw-r--r-- | src/w32term.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c index 4d5f2e7c3cc..7dbeda7a716 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -3690,7 +3690,7 @@ x_window_to_scroll_bar (Window window_id, int type) ! NILP (bar)); bar = XSCROLL_BAR (bar)->next) if (SCROLL_BAR_W32_WINDOW (XSCROLL_BAR (bar)) == window_id - && (type = 2 + && (type == 2 || (type == 1 && XSCROLL_BAR (bar)->horizontal) || (type == 0 && !XSCROLL_BAR (bar)->horizontal))) return XSCROLL_BAR (bar); |