mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-05 20:55:01 +08:00
simplify double cast
This commit is contained in:
parent
2d9a4e5adb
commit
6e773446df
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user