bug 34435 , submitted by Nick Burch. Thanks

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353645 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Avik Sengupta 2005-04-22 11:16:09 +00:00
parent 39d0b7d3a8
commit 85fead1410
1 changed files with 4 additions and 1 deletions

View File

@ -154,7 +154,10 @@ public class EscherSpRecord
result.append( ( flags & FLAG_BACKGROUND ) != 0 ? "|BACKGROUND" : "" );
result.append( ( flags & FLAG_HASSHAPETYPE ) != 0 ? "|HASSHAPETYPE" : "" );
result.deleteCharAt(0);
//need to check, else blows up on some records - bug 34435
if(result.length() > 0) {
result.deleteCharAt(0);
}
return result.toString();
}