Fix error if image was selected
This commit is contained in:
parent
f912e831a0
commit
f7bf8fd316
1 changed files with 3 additions and 0 deletions
|
@ -1,7 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="TOCLinks" script:language="StarBasic" script:moduleType="normal">Sub makeOutlineLinks
|
||||
Dim oViewCursor As Object
|
||||
Dim i As Integer
|
||||
oViewCursor = ThisComponent.CurrentController.getViewCursor()
|
||||
oViewCursor.jumpToFirstPage()
|
||||
For i = 1 To 10
|
||||
makeLinksWithLevel(i)
|
||||
Next i
|
||||
|
|
Loading…
Add table
Reference in a new issue