https://bugs.documentfoundation.org/show_bug.cgi?id=141586

--- Comment #36 from Jurassic Pork <jurassic.p...@orange.fr> ---
Hello,
you can try this to get around this bug.

1 - Create this macro in MyMacros named OpenDoc
Sub OpenDoc
Dim document as object, dispatcher as object, pageCount as Integer
   pageCount = ThisComponent.CurrentController.PageCount
   document = ThisComponent.CurrentController.Frame
   dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
   dispatcher.executeDispatch(document,".uno:RestoreEditingView","",0,Array())
End Sub

.uno:RestoreEditingView  = Shift+F5

2 - Assign this macro to Open Document event : 
Tools/Customize   Events Tab 
and save in LibreOffice (not the document)

Seems to be OK with LibreOffice 7.4.6.2 under windows 11 and LibreOffice
24.2.0.3 under Ubuntu 20.4, with big document (2500 pages).
The instruction with pagecount seems to be useless but if you comment it, the
cursor is'nt to the right place

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to