summaryrefslogtreecommitdiff
path: root/writerperfect/source/draw/CDRImportFilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerperfect/source/draw/CDRImportFilter.cxx')
-rw-r--r--writerperfect/source/draw/CDRImportFilter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/writerperfect/source/draw/CDRImportFilter.cxx b/writerperfect/source/draw/CDRImportFilter.cxx
index d0204b3125e7..b5c645201d33 100644
--- a/writerperfect/source/draw/CDRImportFilter.cxx
+++ b/writerperfect/source/draw/CDRImportFilter.cxx
@@ -145,9 +145,9 @@ throw( com::sun::star::uno::RuntimeException )
if (libcdr::CDRDocument::isSupported(&input))
sTypeName = "draw_CorelDraw_Document";
- if (sTypeName.getLength())
+ if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";