]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't make lines narrower that default line height in variable height mode, don't...
authorRobert Roebling <robert@roebling.de>
Tue, 20 May 2008 12:44:21 +0000 (12:44 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 20 May 2008 12:44:21 +0000 (12:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index 533d34a9bcca4e69b7f5453ca2a6eb06268b7112..f9f0346f8b7b3da324877558cefc77e5a27bb633 100644 (file)
@@ -2953,7 +2953,7 @@ int wxDataViewMainWindow::GetLineStart( unsigned int row ) const
            
            unsigned int cols = GetOwner()->GetColumnCount();
            unsigned int col;
-           int height = 0;
+           int height = m_lineHeight;
            for (col = 0; col < cols; col++)
            {
                 const wxDataViewColumn *column = GetOwner()->GetColumn(col);
@@ -3005,7 +3005,7 @@ int wxDataViewMainWindow::GetLineAt( unsigned int y ) const
            
            unsigned int cols = GetOwner()->GetColumnCount();
            unsigned int col;
-           int height = 0;
+           int height = m_lineHeight;
            for (col = 0; col < cols; col++)
            {
                 const wxDataViewColumn *column = GetOwner()->GetColumn(col);
@@ -3052,7 +3052,7 @@ int wxDataViewMainWindow::GetLineHeight( unsigned int row ) const
 
         wxDataViewItem item = node->GetItem();
         
-        int height = 0;
+        int height = m_lineHeight;
         
         unsigned int cols = GetOwner()->GetColumnCount();
         unsigned int col;
@@ -3722,7 +3722,7 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event )
             wxRect rect( xpos + indent + EXPANDER_MARGIN, 
                          GetLineStart( current ) + EXPANDER_MARGIN + (GetLineHeight(current)/2) - (m_lineHeight/2) - EXPANDER_OFFSET,
                          m_lineHeight-2*EXPANDER_MARGIN,
-                         m_lineHeight-2*EXPANDER_MARGIN);
+                         m_lineHeight-2*EXPANDER_MARGIN + EXPANDER_OFFSET);
             if( rect.Contains( x, y) )
             {
                 //So the mouse is over the expander
@@ -3850,7 +3850,7 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event )
                 wxRect rect( xpos + indent + EXPANDER_MARGIN, 
                          GetLineStart( current ) + EXPANDER_MARGIN + (GetLineHeight(current)/2) - (m_lineHeight/2) - EXPANDER_OFFSET,
                          m_lineHeight-2*EXPANDER_MARGIN,
-                         m_lineHeight-2*EXPANDER_MARGIN);
+                         m_lineHeight-2*EXPANDER_MARGIN + EXPANDER_OFFSET);
                 
                 if( rect.Contains( x, y) )
                 {