Browse Source

橡皮擦-宽度改变

liyijie 1 year ago
parent
commit
0f50196ec2

+ 5 - 1
PDF Office/ViewModels/PropertyPanel/AnnotPanel/FreehandAnnotPropertyViewModel.cs

@@ -21,6 +21,7 @@ using System.Windows.Controls;
 using System.Windows.Controls.Primitives;
 using System.Windows.Data;
 using System.Windows.Media;
+using static Dropbox.Api.TeamLog.SharedLinkAccessLevel;
 using static Dropbox.Api.UsersCommon.AccountType;
 
 namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
@@ -451,7 +452,10 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
                 var annot = Annot as EraseArgs;
                 if (annot != null)
                 {
-                    EraseThicknessLine = annot.Thickness;
+                    //进入橡皮擦更新一下缓存宽度
+                    AnnotEvent?.UpdateAttrib(AnnotAttrib.Thickness, EraseThicknessLine);
+                    AnnotEvent?.UpdateAnnot();
+                    //EraseThicknessLine = EraseThicknessLine;
                     IsPen = false;
                 }
             }