mainWindow.PictureSettings.text_height.Value = presetQuery.MaxHeight.Value;\r
}\r
\r
- if (presetQuery.MaxHeight.HasValue && presetQuery.MaxWidth.HasValue)\r
- {\r
- mainWindow.PictureSettings.PresetMaximumResolution = new Size(\r
- presetQuery.MaxWidth.Value, presetQuery.MaxHeight.Value);\r
- }\r
+ mainWindow.PictureSettings.PresetMaximumResolution = new Size(\r
+ presetQuery.MaxWidth.HasValue ? presetQuery.MaxWidth.Value : 0,\r
+ presetQuery.MaxHeight.HasValue ? presetQuery.MaxHeight.Value : 0);\r
\r
// Case where both height and max height are 0 - For built-in presets\r
if (presetQuery.MaxHeight == 0 && presetQuery.Height == 0)\r