Check if no textranges selected
This commit is contained in:
parent
71f52c5c01
commit
f912e831a0
1 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,9 @@ Sub convertEndnotesExecution
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
oSelections = ThisComponent.getCurrentSelection()
|
oSelections = ThisComponent.getCurrentSelection()
|
||||||
If IsNull(oSelections) Then
|
|
||||||
MsgBox getTranslation("something weird happened error text")
|
If NOT oSelections.supportsService("com.sun.star.text.TextRanges") Then
|
||||||
|
MsgBox getTranslation("EndnotesNotFound")
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
objectsCount = oSelections.getCount()
|
objectsCount = oSelections.getCount()
|
||||||
|
|
Loading…
Add table
Reference in a new issue