OSDN Git Service

[ 671034 ] operator precedence bug in SplitterWndEx.cpp
authorChristian List <list1974@hotmail.com>
Mon, 20 Jan 2003 15:04:26 +0000 (15:04 +0000)
committerChristian List <list1974@hotmail.com>
Mon, 20 Jan 2003 15:04:26 +0000 (15:04 +0000)
Src/Common/SplitterWndEx.cpp

index f92969f..d8d99d2 100644 (file)
@@ -37,7 +37,7 @@ void CSplitterWndEx::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
        CSplitterWnd::OnHScroll(nSBCode, nPos, pScrollBar);
 
        // only sync if shared horizontal bars
-       if(GetScrollStyle()&WS_HSCROLL == 0)
+       if((GetScrollStyle()&WS_HSCROLL) == 0)
                return;
 
        // enhance with proportional horizontal scroll synchronization