Simply if statement
This commit is contained in:
@@ -777,7 +777,7 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown
|
|||||||
paragraph.Format.Alignment = ParagraphAlignment.Center;
|
paragraph.Format.Alignment = ParagraphAlignment.Center;
|
||||||
var image = paragraph.AddImage(filePath);
|
var image = paragraph.AddImage(filePath);
|
||||||
image.LockAspectRatio = true;
|
image.LockAspectRatio = true;
|
||||||
if (!isPDF && loadedImageHeight > 600)
|
if (loadedImageHeight > 600)
|
||||||
{
|
{
|
||||||
image.Height = 550; // make sure it will fit on one page
|
image.Height = 550; // make sure it will fit on one page
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user