wxGridCellAttrProvider * attrProvider = m_table->GetAttrProvider();
if (attrProvider) {
attrProvider->UpdateAttrRows( pos, -((int)numRows) );
- // No need to touch column attributes, unless we
+// ifdef'd out following patch from Paul Gammans
+#if 0
// removed _all_ rows, in this case, we remove
// all column attributes.
// I hate to do this here, but the
// needed data is not available inside UpdateAttrRows.
if ( !GetNumberRows() )
attrProvider->UpdateAttrCols( 0, -GetNumberCols() );
+#endif
}
if ( !GetBatchCount() )
{
wxGridCellAttrProvider * attrProvider = m_table->GetAttrProvider();
if (attrProvider) {
attrProvider->UpdateAttrCols( pos, -((int)numCols) );
+// ifdef'd out following patch from Paul Gammans
+#if 0
// No need to touch row attributes, unless we
// removed _all_ columns, in this case, we remove
// all row attributes.
// needed data is not available inside UpdateAttrCols.
if ( !GetNumberCols() )
attrProvider->UpdateAttrRows( 0, -GetNumberRows() );
+#endif
}
if ( !GetBatchCount() )
{
//
if ( edit != m_editable )
{
+ if(!edit) EnableCellEditControl(edit);
m_editable = edit;
-
- // FIXME IMHO this won't disable the edit control if edit == FALSE
- // because of the check in the beginning of
- // EnableCellEditControl() just below (VZ)
- EnableCellEditControl(m_editable);
}
}
{
if ( !IsVisible( m_currentCellCoords ) )
{
+ m_cellEditCtrlEnabled = false;
return;
}
else