iterateCodePoints() on empty string is no good anymore

Change-Id: Id2ddbbff90f3cd32c03c7623af6d458717c7e8a8
This commit is contained in:
Eike Rathke
2013-10-29 00:50:46 +01:00
parent 20e0afa760
commit 2830bf9af9

View File

@@ -1217,6 +1217,9 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
}
// Rudimentary check if a pattern interferes with decimal number.
// But only if not inherited in which case we don't have aDecSep here.
if (!aDecSep.isEmpty())
{
nIndex = 0;
sal_uInt32 cDecSep = aDecSep.iterateCodePoints( &nIndex);
for (vector<OUString>::const_iterator aIt = theDateAcceptancePatterns.begin();
@@ -1233,6 +1236,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
}
}
}
}
// Check for duplicates.
for (vector<OUString>::const_iterator aIt = theDateAcceptancePatterns.begin();