summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx b/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx
index 5e144d7f7053..00a97a9cc3fa 100644
--- a/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx
+++ b/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx
@@ -167,7 +167,10 @@ void UnoInterfaceToUniqueIdentifierMapper::insertReference( const OUString& rIde
// an integer value like this one
sal_Int32 nId = rIdentifier.copy(2).toInt32();
if (nId > 0 && mnNextId <= static_cast<sal_uInt32>(nId))
- mnNextId = nId + 1;
+ {
+ mnNextId = nId;
+ ++mnNextId;
+ }
}
}