|
@@ -876,11 +876,11 @@ namespace ComPDFKit.Tool
|
|
if (e.hitTestType == MouseHitTestType.SelectRect)
|
|
if (e.hitTestType == MouseHitTestType.SelectRect)
|
|
{
|
|
{
|
|
List<C_ANNOTATION_TYPE> list = new List<C_ANNOTATION_TYPE>()
|
|
List<C_ANNOTATION_TYPE> list = new List<C_ANNOTATION_TYPE>()
|
|
- {
|
|
|
|
- C_ANNOTATION_TYPE.C_ANNOTATION_LINE,
|
|
|
|
- C_ANNOTATION_TYPE.C_ANNOTATION_POLYLINE,
|
|
|
|
- C_ANNOTATION_TYPE.C_ANNOTATION_POLYGON,
|
|
|
|
- };
|
|
|
|
|
|
+ {
|
|
|
|
+ C_ANNOTATION_TYPE.C_ANNOTATION_LINE,
|
|
|
|
+ C_ANNOTATION_TYPE.C_ANNOTATION_POLYLINE,
|
|
|
|
+ C_ANNOTATION_TYPE.C_ANNOTATION_POLYGON,
|
|
|
|
+ };
|
|
if (list.Contains(e.annotType))
|
|
if (list.Contains(e.annotType))
|
|
{
|
|
{
|
|
viewerTool.DrawEndEditAnnot();
|
|
viewerTool.DrawEndEditAnnot();
|
|
@@ -2240,11 +2240,14 @@ namespace ComPDFKit.Tool
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- viewerTool.CleanEditAnnot();
|
|
|
|
- viewerTool.DrawStartSelectedRect();
|
|
|
|
- if (currentToolType == ToolType.WidgetEdit)
|
|
|
|
|
|
+ if(currentToolType != ToolType.Viewer)
|
|
{
|
|
{
|
|
- viewerTool.MoveDrawWidget(true);
|
|
|
|
|
|
+ viewerTool.CleanEditAnnot();
|
|
|
|
+ viewerTool.DrawStartSelectedRect();
|
|
|
|
+ if (currentToolType == ToolType.WidgetEdit)
|
|
|
|
+ {
|
|
|
|
+ viewerTool.MoveDrawWidget(true);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|