|
@@ -713,31 +713,15 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
private void PDFToolManager_MouseLeftButtonDownHandler(object sender, MouseEventObject e)
|
|
|
{
|
|
|
isUpdateStartPoint = true;
|
|
|
- if (PdfViewControl.PDFToolManager.GetToolType() != ToolType.ContentEdit)
|
|
|
+ if (PdfViewControl.PDFToolManager.GetToolType() == ToolType.ContentEdit)
|
|
|
{
|
|
|
PropertyContainer.Child = pdfContentEditControl;
|
|
|
-
|
|
|
- //if (pdfTextCreateParam != null && PdfViewControl != null && PdfViewControl.PDFView != null)
|
|
|
- //{
|
|
|
- // if (PdfViewControl.PDFView.GetPDFEditCreateType() == CPDFEditType.EditText)
|
|
|
- // {
|
|
|
- // pdfContentEditControl.SetPDFTextEditData(pdfTextCreateParam);
|
|
|
- // }
|
|
|
- // else if (PdfViewControl.PDFView.GetPDFEditCreateType() == CPDFEditType.None)
|
|
|
- // {
|
|
|
- // pdfContentEditControl.ClearContentControl();
|
|
|
- // }
|
|
|
- //}
|
|
|
- //else
|
|
|
- //{
|
|
|
- // pdfContentEditControl.ClearContentControl();
|
|
|
- //}
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
int PageIndex = -1;
|
|
|
CPDFEditArea editAreaArea = PdfViewControl.PDFToolManager.GetSelectedEditAreaObject(ref PageIndex);
|
|
|
- if (editAreaArea == null)
|
|
|
+ if (editAreaArea.Type != CPDFEditType.EditText && editAreaArea == null)
|
|
|
{
|
|
|
pdfContentEditControl.ClearContentControl();
|
|
|
return;
|