Handle internal representation duplication correctly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
977c73b07a
commit
c0eac52cd9
@ -475,7 +475,7 @@ public class StyleTextPropAtom extends RecordAtom
|
||||
* of the property is itself a mask, encoding several different
|
||||
* (but related) properties
|
||||
*/
|
||||
public static class BitMaskTextProp extends TextProp {
|
||||
public static class BitMaskTextProp extends TextProp implements Cloneable {
|
||||
private String[] subPropNames;
|
||||
private int[] subPropMasks;
|
||||
private boolean[] subPropMatches;
|
||||
@ -527,6 +527,16 @@ public class StyleTextPropAtom extends RecordAtom
|
||||
dataValue -= subPropMasks[idx];
|
||||
}
|
||||
}
|
||||
|
||||
public Object clone(){
|
||||
BitMaskTextProp newObj = (BitMaskTextProp)super.clone();
|
||||
|
||||
// Don't carry over matches, but keep everything
|
||||
// else as it was
|
||||
newObj.subPropMatches = new boolean[subPropMatches.length];
|
||||
|
||||
return newObj;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user