[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to