summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcell.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx
index be319ca7863a..8437275fd1b1 100644
--- a/lotuswordpro/source/filter/xfilter/xfcell.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfcell.cxx
@@ -173,12 +173,17 @@ void XFCell::SetValue(rtl::OUString value)
rtl::OUString XFCell::GetCellName()
{
- rtl::OUString name;
- XFRow *pRow = m_pOwnerRow;
+ XFRow *pRow = m_pOwnerRow;
+
+ if( !pRow )
+ return A2OUSTR("");
+
XFTable *pTable = pRow->GetOwnerTable();
- if( !pRow || !pTable )
+ if( !pTable )
return A2OUSTR("");
+
+ rtl::OUString name;
if( pTable->IsSubTable() )
{
name = pTable->GetTableName() + A2OUSTR(".") + Int32ToOUString(m_nCol) + A2OUSTR(".") + Int32ToOUString(pRow->GetRow());