Selaa lähdekoodia

编辑-属性面板刷新错误bug修复

lvle 1 vuosi sitten
vanhempi
commit
b789defa2e

+ 1 - 1
PDF Office/ViewModels/PropertyPanel/PDFEdit/ImageEditPropertyViewModel.cs

@@ -290,7 +290,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
             }       
         }
 
-        //此处只有多线程 ReplaceimgTask()才有作用
+        //此处只有异步 ReplaceimgTask()才有作用
         async Task ReplaceimgTask()
         {
             await Task.Delay(100);

+ 1 - 1
PDF Office/ViewModels/PropertyPanel/PDFEdit/TextEditPropertyViewModel.cs

@@ -992,7 +992,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
                 CurrentPresetFont = new ComboDataItem("Custom", "Custom");
                 GetCurrentFontSize((int)TextEditEvent.FontSize);
 
-                GetCurrentFontFamily("Helvetica", "Helvetica");
+                GetCurrentFontFamily(TextEditEvent.FontName, TextEditEvent.FontName);
                 GetFontWeights_Style(TextEditEvent.IsItalic ? FontStyles.Italic : FontStyles.Normal, TextEditEvent.IsBold ? FontWeights.Bold : FontWeights.Normal);
             }
             else