Kaydet (Commit) a51f2248 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix problem with \0 in string literal

Change-Id: If605c111a1d921e404c4aca12d28c558a6659987
üst 0e72992d
......@@ -56,7 +56,8 @@ namespace {
OUString lclGetShapeId( sal_Int32 nShapeId )
{
// identifier consists of a literal NUL character, a lowercase 's', and the id
return OUString( "\0s" ) + OUString::valueOf( nShapeId );
sal_Unicode aStr[2] = { '\0', 's' };
return OUString( aStr, 2 ) + OUString::valueOf( nShapeId );
}
/** Returns the numeric VML shape identifier from its textual representation. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment