summaryrefslogtreecommitdiff
path: root/writerperfect/source/draw/WPGImportFilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerperfect/source/draw/WPGImportFilter.cxx')
-rw-r--r--writerperfect/source/draw/WPGImportFilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerperfect/source/draw/WPGImportFilter.cxx b/writerperfect/source/draw/WPGImportFilter.cxx
index b142e1a640bd..e4067f95743e 100644
--- a/writerperfect/source/draw/WPGImportFilter.cxx
+++ b/writerperfect/source/draw/WPGImportFilter.cxx
@@ -148,7 +148,7 @@ throw( com::sun::star::uno::RuntimeException )
if (!sTypeName.isEmpty())
{
- if ( location == Descriptor.getLength() )
+ if ( location == nLength )
{
Descriptor.realloc(nLength+1);
Descriptor[location].Name = "TypeName";