[poppler] Gfx::opSetFillRGBColor generates warnings

Albert Astals Cid aacid at kde.org
Thu Nov 24 13:35:02 PST 2011


El Dijous, 24 de novembre de 2011, a les 20:22:42, Axel Strübing va escriure:
> Dear popplers,
> 
> I lately noticed a lot of warnings
> 'Bad color space - expected name, array or dict'
> 
> These warnings are due to
> 0 0 0 rg
> or similar (different numbers) in the content stream of a page. This command
> is valid pdf.
> 
> IMHO the cause is a typo in Gfx::opSetFillRGBColor where
> ------------
>   if !obj.isNull()) {
>     colorSpace = GfxColorSpace::parse(&obj, this);
>   }
> ------------
> should be  changed to
> ------------
>   if (!obj.isNull()) {
>     colorSpace = GfxColorSpace::parse(&obj, this);
>   }
> ------------
> 
> Despite this warning the further processing seems to be correct.
> 
> Please feel free to comment or correct me.

Yeah, a "typo" when i did the "do not crash" refactor. Thanks for catching it.

Albert

> 
> --
> regards
> Axel


More information about the poppler mailing list