From 5dfbc50b81ce0c3c3cd5a650e66af2fe5d6428e8 Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Fri, 30 Mar 2018 16:26:15 -0700 Subject: [PATCH] Remove leading space --- .../Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs | 8 ++++---- .../Formats/Jpeg/PdfJsPort/PdfJsJpegDecoderCore.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs index 183076ac5..a4fbb17be 100644 --- a/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs @@ -427,12 +427,12 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort { if (this.isExif) { - double horizontalValue = this.MetaData.ExifProfile.TryGetValue(ExifTag.XResolution, out var horizonalTag) - ? ((Rational)horizonalTag.Value).ToDouble() + double horizontalValue = this.MetaData.ExifProfile.TryGetValue(ExifTag.XResolution, out ExifValue horizonalTag) + ? ((Rational)horizonalTag.Value).ToDouble() : 0; - double verticalValue = this.MetaData.ExifProfile.TryGetValue(ExifTag.YResolution, out var verticalTag) - ? ((Rational)verticalTag.Value).ToDouble() + double verticalValue = this.MetaData.ExifProfile.TryGetValue(ExifTag.YResolution, out ExifValue verticalTag) + ? ((Rational)verticalTag.Value).ToDouble() : 0; if (horizontalValue > 0 && verticalValue > 0) diff --git a/src/ImageSharp/Formats/Jpeg/PdfJsPort/PdfJsJpegDecoderCore.cs b/src/ImageSharp/Formats/Jpeg/PdfJsPort/PdfJsJpegDecoderCore.cs index ba5362993..30b8158e7 100644 --- a/src/ImageSharp/Formats/Jpeg/PdfJsPort/PdfJsJpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpeg/PdfJsPort/PdfJsJpegDecoderCore.cs @@ -380,12 +380,12 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort { if (this.isExif) { - double horizontalValue = image.MetaData.ExifProfile.TryGetValue(ExifTag.XResolution, out var horizontalTag) - ? ((Rational)horizontalTag.Value).ToDouble() + double horizontalValue = image.MetaData.ExifProfile.TryGetValue(ExifTag.XResolution, out ExifValue horizontalTag) + ? ((Rational)horizontalTag.Value).ToDouble() : 0; - double verticalValue = image.MetaData.ExifProfile.TryGetValue(ExifTag.YResolution, out var verticalTag) - ? ((Rational)verticalTag.Value).ToDouble() + double verticalValue = image.MetaData.ExifProfile.TryGetValue(ExifTag.YResolution, out ExifValue verticalTag) + ? ((Rational)verticalTag.Value).ToDouble() : 0; if (horizontalValue > 0 && verticalValue > 0)