You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/04/04 22:08:33 UTC
[jira] [Commented] (PDFBOX-2746)
PDPageContentStream.saveGraphicsState() saves wrong nonStrokingColor and
throws an exception
[ https://issues.apache.org/jira/browse/PDFBOX-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395913#comment-14395913 ]
ASF subversion and git services commented on PDFBOX-2746:
---------------------------------------------------------
Commit 1671308 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1671308 ]
PDFBOX-2746: save correct color in saveGraphicsState(), as reported by Radomir Mladenovic
> PDPageContentStream.saveGraphicsState() saves wrong nonStrokingColor and throws an exception
> --------------------------------------------------------------------------------------------
>
> Key: PDFBOX-2746
> URL: https://issues.apache.org/jira/browse/PDFBOX-2746
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: Radomir Mladenovic
> Priority: Blocker
> Fix For: 2.0.0
>
>
> Method PDPageContentStream.saveGraphicsState() has the following code:
> {quote}
> if (!nonStrokingColorSpaceStack.isEmpty())
> \{
> nonStrokingColorSpaceStack.push(strokingColorSpaceStack.peek());
> }
> {quote}
> Notice peek of *strokingColorSpaceStack* instead of *nonStrokingColorSpaceStack*. Needless to say it also throws an exception if strokingColorSpaceStack was not set.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org