crashtesting: Related tdf#91291 assert on indexing into empty string
Change-Id: I157389607d2a54349c54ebdb3e283deee126ca67
This commit is contained in:
@@ -375,7 +375,8 @@ bool SwFieldPortion::Format( SwTextFormatInfo &rInf )
|
||||
|
||||
// These characters should not be contained in the follow
|
||||
// field portion. They are handled via the HookChar mechanism.
|
||||
switch( aNew[0] )
|
||||
const sal_Unicode nNew = !aNew.isEmpty() ? aNew[0] : 0;
|
||||
switch (nNew)
|
||||
{
|
||||
case CH_BREAK : bFull = true;
|
||||
// no break
|
||||
|
Reference in New Issue
Block a user