diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xoutdev/xattr.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index e28c85b4a70b..f5a0d4161efb 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -32,6 +32,7 @@ #include <com/sun/star/beans/PropertyValue.hpp> #include <comphelper/propertyvalue.hxx> +#include <comphelper/string.hxx> #include <o3tl/any.hxx> #include <svl/itempool.hxx> #include <editeng/memberids.h> @@ -212,7 +213,7 @@ OUString NameOrIndex::CheckNamedItem( const NameOrIndex* pCheckItem, const sal_u const OUString& aEntryName = pEntry->GetName(); if(aEntryName.getLength() >= aUser.getLength()) { - sal_Int32 nThisIndex = aEntryName.copy( aUser.getLength() ).toInt32(); + sal_Int32 nThisIndex = comphelper::string::toInt32(aEntryName.subView( aUser.getLength() )); if( nThisIndex >= nUserIndex ) nUserIndex = nThisIndex + 1; } |