PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

PdfGraphicsState.RealizeBrush bug
http://forum.pdfsharp.com/viewtopic.php?f=3&t=2012
Page 1 of 1

Author:  yubi [ Thu May 10, 2012 11:49 am ]
Post subject:  PdfGraphicsState.RealizeBrush bug

Hi, I found a bug in the method PdfGraphicsState.RealizeBrush.
If the last realized brush was a XLinearGradientBrush, realizedFillColor is XColor.Empty, so if the Rbg property of the next brush will equals XColor.Empty.Rgb, this brush will not be realized. This issue causes the invisible text in my application.
My fix: line 251 in PdfGraphicsState.cs should be modified:
Code:
if (this.realizedFillColor != Color.Empty || this.realizedFillColor.Rgb != color.Rgb)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/