https://bugs.documentfoundation.org/show_bug.cgi?id=123256
Bug ID: 123256
Summary: VewCursor and TextCursor returns wrong PageStyleName
Product: LibreOffice
Version: 6.1.4.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
If cursor placed inside big paragraph (a few pages) cursors PageStyleName
property shows wrong page style name (shows style of the page where paragraph
starts).
So I haven't found a way to get current valid page style name.
Steps to Reproduce:
1. Create big paragraph
2. Set first page style to First Page
3. go to second page. Check cursor's property
Actual Results:
page style name of page where paragraph starts
Expected Results:
current page style name
Reproducible: Always
User Profile Reset: No
Additional Info:
Macor to reproduce
Sub wrongPageStyleName
Dim oViewCursor As Object
oViewCursor = ThisComponent.CurrentController.getViewCursor()
oViewCursor.goToStart(false)
MsgBox "First page style is rigth "+oViewCursor.pageStyleName
oViewCursor.jumpToNextPage()
MsgBox "Second page style is wrong (at start))
"+oViewCursor.pageStyleName
oViewCursor.jumpToEndOfPage()
MsgBox "Second page style is wrong (at end))
"+oViewCursor.pageStyleName
End Sub
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs