提交 c4bc3e1d 编写于 作者: W WMJ

-修复页面属性对话框初始显示不正确的问题

上级 a9d03ec3
...@@ -15,9 +15,9 @@ namespace PDFPatcher.Functions.Editor ...@@ -15,9 +15,9 @@ namespace PDFPatcher.Functions.Editor
var p = v.TransposeVirtualImageToPagePosition(l.X, l.Y); var p = v.TransposeVirtualImageToPagePosition(l.X, l.Y);
var f = GetDialog(); var f = GetDialog();
using (var page = controller.Model.PdfDocument.LoadPage(p.Page)) { using (var page = controller.Model.PdfDocument.LoadPage(p.Page)) {
f.LoadPage(page);
f.Location = v.PointToScreen(v.TransposeVirtualImageToClient(l.X, l.Y)); f.Location = v.PointToScreen(v.TransposeVirtualImageToClient(l.X, l.Y));
f.Show(); f.Show();
f.LoadPage(page);
} }
} }
......
...@@ -21,6 +21,7 @@ namespace PDFPatcher.Functions.Editor ...@@ -21,6 +21,7 @@ namespace PDFPatcher.Functions.Editor
_CloseButton.Click += (s, args) => Hide(); _CloseButton.Click += (s, args) => Hide();
_FontNameColumn.AsTyped<MuFontAndSize>(f => f.AspectGetter = o => o.FontName); _FontNameColumn.AsTyped<MuFontAndSize>(f => f.AspectGetter = o => o.FontName);
_SizeColumn.AsTyped<MuFontAndSize>(f => f.AspectGetter = o => o.Size); _SizeColumn.AsTyped<MuFontAndSize>(f => f.AspectGetter = o => o.Size);
_TextStyleBox.ScaleColumnWidths();
} }
public void LoadPage(MuPage page) { public void LoadPage(MuPage page) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册