{
return m_colText;
}
- else if (m_defGridAttr != this)
+ else if (m_defGridAttr && m_defGridAttr != this)
{
return m_defGridAttr->GetTextColour();
}
{
if (HasBackgroundColour())
return m_colBack;
- else if (m_defGridAttr != this)
+ else if (m_defGridAttr && m_defGridAttr != this)
return m_defGridAttr->GetBackgroundColour();
else
{
{
if (HasFont())
return m_font;
- else if (m_defGridAttr != this)
+ else if (m_defGridAttr && m_defGridAttr != this)
return m_defGridAttr->GetFont();
else
{
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
{
if ( !renderer )
{
- 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 ( !editor )
{
- 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)