git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13446
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- else if (m_defGridAttr != this)
+ else if (m_defGridAttr && m_defGridAttr != this)
{
return m_defGridAttr->GetTextColour();
}
{
return m_defGridAttr->GetTextColour();
}
{
if (HasBackgroundColour())
return m_colBack;
{
if (HasBackgroundColour())
return m_colBack;
- else if (m_defGridAttr != this)
+ else if (m_defGridAttr && m_defGridAttr != this)
return m_defGridAttr->GetBackgroundColour();
else
{
return m_defGridAttr->GetBackgroundColour();
else
{
{
if (HasFont())
return m_font;
{
if (HasFont())
return m_font;
- else if (m_defGridAttr != this)
+ else if (m_defGridAttr && m_defGridAttr != this)
return m_defGridAttr->GetFont();
else
{
return m_defGridAttr->GetFont();
else
{
if ( hAlign ) *hAlign = m_hAlign;
if ( vAlign ) *vAlign = m_vAlign;
}
if ( hAlign ) *hAlign = m_hAlign;
if ( vAlign ) *vAlign = m_vAlign;
}
- else if (m_defGridAttr != this)
+ else if (m_defGridAttr && m_defGridAttr != this)
m_defGridAttr->GetAlignment(hAlign, vAlign);
else
{
m_defGridAttr->GetAlignment(hAlign, vAlign);
else
{
- if ( this != m_defGridAttr )
+ if (m_defGridAttr && this != m_defGridAttr )
{
// if we still don't have one then use the grid default
// (no need for IncRef() here neither)
{
// if we still don't have one then use the grid default
// (no need for IncRef() here neither)
- if ( this != m_defGridAttr )
+ if ( m_defGridAttr && this != m_defGridAttr )
{
// if we still don't have one then use the grid default
// (no need for IncRef() here neither)
{
// if we still don't have one then use the grid default
// (no need for IncRef() here neither)