summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/fmcomp/dbaexchange.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/svx/source/fmcomp/dbaexchange.cxx b/svx/source/fmcomp/dbaexchange.cxx
index e5a974d7023f..ff0e74f6584e 100644
--- a/svx/source/fmcomp/dbaexchange.cxx
+++ b/svx/source/fmcomp/dbaexchange.cxx
@@ -464,15 +464,8 @@ namespace svx
break;
}
- sal_Int32 nDescriptorLen = m_sCompatibleObjectDescription.getLength();
- if (nDescriptorLen)
- {
- if (m_sCompatibleObjectDescription[nDescriptorLen] == 11)
- m_sCompatibleObjectDescription = m_sCompatibleObjectDescription.copy(0, nDescriptorLen - 1);
-
- if (nDescriptorLen)
- AddFormat(SOT_FORMATSTR_ID_SBA_DATAEXCHANGE);
- }
+ if (!m_sCompatibleObjectDescription.isEmpty())
+ AddFormat(SOT_FORMATSTR_ID_SBA_DATAEXCHANGE);
}
// -----------------------------------------------------------------------------