Simply if statement

This commit is contained in:
2026-03-12 19:07:25 +09:00
parent 4ad4a0852f
commit 742ecb148a
+1 -1
View File
@@ -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
} }