mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-11-24 08:47:01 +08:00
simplify double cast
This commit is contained in:
@@ -393,7 +393,7 @@
|
||||
var formMatrix = TransformationMatrix.Identity;
|
||||
if (formStream.StreamDictionary.TryGet<ArrayToken>(NameToken.Matrix, pdfScanner, out var formMatrixToken))
|
||||
{
|
||||
formMatrix = TransformationMatrix.FromArray(formMatrixToken.Data.OfType<NumericToken>().Select(x => (double)x.Data).ToArray());
|
||||
formMatrix = TransformationMatrix.FromArray(formMatrixToken.Data.OfType<NumericToken>().Select(x => x.Double).ToArray());
|
||||
}
|
||||
|
||||
// 2. Update current transformation matrix.
|
||||
|
||||
Reference in New Issue
Block a user