|
@@ -6579,7 +6579,11 @@ extension KMMainViewController: ComponentGroupDelegate {
|
|
|
} else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Edit_NoStylePaste) {
|
|
|
listView.pasteEditAreaAction()
|
|
|
} else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Edit_SelectAll) {
|
|
|
- listView.selectAllAction(with: listView.km_EditingAreas().first)
|
|
|
+ if listView.km_EditingAreas().count <= 0 {
|
|
|
+ listView.selectAllAreaAction()
|
|
|
+ } else {
|
|
|
+ listView.selectAllAction(with: listView.km_EditingAreas().first)
|
|
|
+ }
|
|
|
} else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Edit_AddLink) {
|
|
|
pdfToolbarController?.clickWithIdentify(KMPDFToolbar_edit_link_Identifier)
|
|
|
|