PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Aug 18, 2017 8:45 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Jan 03, 2016 11:59 pm 
Offline

Joined: Sat Mar 23, 2013 11:48 pm
Posts: 11
When using the GDI+ API and rendering to a PDF, I'm seeing an exception thrown when getting/setting XGraphics.SmoothingMode. Rendering to a bitmap is fine. (Well, some text is offset, but that's a different bug). Exception is at:

https://github.com/empira/PDFsharp/blob ... s.cs#L4492

Debugging in, _gfx is null.

If I add
Code:
if (_gfx != null) { ... }
guards (as are present on some other code paths), everything else appears to be fine, but I haven't dug in deeply to see if that's a correct fix.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group