Faulty dirty tracking in XSolidBrush Color setter
PDFsharp is a .NET library for creating and modifying PDF documents.
Brought to you by:
pdfsharp,
stefan_lange
The code in XSolidBrush's Color attribute reads;
this.color = value;
#if GDI
this.gdiDirty = this.gdiDirty || this.color != value;
#endif
Since the test follows the assignment it will never be true. In other words, once the brush has been realized, assignments to Color will not update it.
The assignment should be moved after the tests (i.e. to the end of the Color setter)
To be fixed with next release.