PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

XMatrix.ToGdiMatrix() bug with identity
https://forum.pdfsharp.net/viewtopic.php?f=3&t=1754
Page 1 of 1

Author:  oliverbock [ Thu Aug 25, 2011 3:39 am ]
Post subject:  XMatrix.ToGdiMatrix() bug with identity

XMatrix.ToGdiMatrix() (and ToGdipMatrix() and ToWpfMatrix()) do not consider the case where the matrix coefficients are not stored because type == XMatrixTypes.Identity. Function bodies should be prefixed with

if (this.type == XMatrixTypes.Identity)
return new Matrix();

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