From f7bf8fd316b843f9c0d7842675a4724e3f740386 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 4 Jun 2021 17:05:34 +0200 Subject: [PATCH] Fix error if image was selected --- ePublishing/TOCLinks.xba | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ePublishing/TOCLinks.xba b/ePublishing/TOCLinks.xba index 20c7d45..1781e80 100644 --- a/ePublishing/TOCLinks.xba +++ b/ePublishing/TOCLinks.xba @@ -1,7 +1,10 @@ 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