Skip to content

Commit

Permalink
PDFBOX-1442: clear cached paint value
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1563662 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lehmi committed Feb 2, 2014
1 parent 597c2ec commit d58d49d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@ public PDColorSpace getColorSpace()
public void setColorSpace(PDColorSpace value)
{
colorSpace = value;
// Clear color cache and current pattern
// Clear color/paint cache and current pattern
color = null;
paint = null;
pattern = null;
}

Expand Down Expand Up @@ -314,8 +315,9 @@ public COSArray getCOSColorSpaceValue()
public void setColorSpaceValue(float[] value)
{
colorSpaceValue.setFloatArray(value);
// Clear color cache and current pattern
// Clear color/paint and current pattern
color = null;
paint = null;
pattern = null;
}

Expand All @@ -337,8 +339,9 @@ public PDPatternResources getPattern()
public void setPattern(PDPatternResources patternValue)
{
pattern = patternValue;
// Clear color cache
// Clear color/paint cache
color = null;
paint = null;
}

}

0 comments on commit d58d49d

Please sign in to comment.