|
@@ -170,13 +170,40 @@ namespace PDF_Office.ViewModels.Tools
|
|
|
{
|
|
|
if (ToolExpandDict.ContainsValue(e.AnnotItemsList[0].EventType))
|
|
|
{
|
|
|
+ var strLineAnnotTag = "";
|
|
|
+ if(e.AnnotItemsList[0] is LineAnnotArgs)
|
|
|
+ {
|
|
|
+ var lineAnnot = e.AnnotItemsList[0] as LineAnnotArgs;
|
|
|
+ if (lineAnnot.HeadLineType == C_LINE_TYPE.LINETYPE_NONE && lineAnnot.TailLineType == C_LINE_TYPE.LINETYPE_NONE)
|
|
|
+ {
|
|
|
+ strLineAnnotTag = "Line";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ strLineAnnotTag = "Arrow";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
foreach (var item in ToolExpandDict)
|
|
|
{
|
|
|
if (item.Value == e.AnnotItemsList[0].EventType)
|
|
|
{
|
|
|
annot = null;//新建注释时,回到默认值
|
|
|
- FindAnnotTypeKey(item.Key, ref annot);
|
|
|
- break;
|
|
|
+ if(string.IsNullOrEmpty(strLineAnnotTag))
|
|
|
+ {
|
|
|
+ FindAnnotTypeKey(item.Key, ref annot);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if(strLineAnnotTag == item.Key)
|
|
|
+ {
|
|
|
+ FindAnnotTypeKey(item.Key, ref annot);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|