OSDN Git Service

[ 672885 ] Fix for ASSERT from CChildFrame::UpdateHeaderSizes
authorChristian List <list1974@hotmail.com>
Mon, 27 Jan 2003 20:20:44 +0000 (20:20 +0000)
committerChristian List <list1974@hotmail.com>
Mon, 27 Jan 2003 20:20:44 +0000 (20:20 +0000)
Src/ChildFrm.cpp

index 94cd77d..d19176a 100644 (file)
@@ -233,7 +233,8 @@ void CChildFrame::UpdateHeaderSizes()
        if(IsWindowVisible())
        {
                int w,wmin;
-               m_wndSplitter.GetColumnInfo(0, w, wmin);        
+               m_wndSplitter.GetColumnInfo(0, w, wmin);
+               if (w<0) w=0; // Perry 2003-01-22 (I don't know why this happens)
                m_wndStatusBar.SetPaneInfo(0, ID_SEPARATOR, SBPS_NORMAL, w-1);
                m_wndStatusBar.SetPaneInfo(1, ID_SEPARATOR, SBPS_STRETCH, 0);
        }