summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-04-17 20:15:19 +0100
committersr55 <[email protected]>2019-04-17 20:15:40 +0100
commit1f07f6747f74fa4e34104e3aaaa1604ac3c7fb68 (patch)
tree27f849c222fbfebb08b5b66b097f3ac9fa24b521
parent2548f195e9d88ba8c5e30ac4f1ead7c0c27695a1 (diff)
WinGui: Don't export Rotate is not set in preset export. Fixes #2047
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
index 177f30f03..9a1128973 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
@@ -590,7 +590,12 @@ namespace HandBrakeWPF.Services.Presets.Factories
preset.PicturePARHeight = export.Task.PixelAspectY;
preset.PicturePARWidth = export.Task.PixelAspectX;
preset.PictureRightCrop = export.Task.Cropping.Right;
- preset.PictureRotate = string.Format("{0}:{1}", export.Task.Rotation, export.Task.FlipVideo ? "1" : "0");
+
+ if (export.Task.Rotation != 0 || export.Task.FlipVideo)
+ {
+ preset.PictureRotate = string.Format("{0}:{1}", export.Task.Rotation, export.Task.FlipVideo ? "1" : "0");
+ }
+
preset.PictureTopCrop = export.Task.Cropping.Top;
preset.PictureWidth = preset.UsesPictureSettings >= 1 ? export.Task.MaxWidth : 0; // TODO
preset.PictureDARWidth = export.Task.DisplayWidth.HasValue ? (int)export.Task.DisplayWidth.Value : 0;