https://bugs.freedesktop.org/show_bug.cgi?id=70807

          Priority: medium
            Bug ID: 70807
          Assignee: [email protected]
           Summary: Page Style method isInUse() broken, returns FALSE
                    allways
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.1.3.2 rc
         Component: BASIC
           Product: LibreOffice

Created attachment 88050
  --> https://bugs.freedesktop.org/attachment.cgi?id=88050&action=edit
File with macro showing the bug

Method isInUse() for page styles return FALSE always, even is the page style is
used in the document.

The atached document has a simple macro to check the issue. The macro is listed
below for convenience.

REM  *****  BASIC  *****

Sub Main
oDocument = ThisComponent
oTablePageStyles=oDocument.StyleFamilies.getbyName("PageStyles")

' set on all page styles

For iL = 0 to oTablePageStyles.Count - 1

    oEstilo = oTablePageStyles(iL)
    msgBox iL & " " & oEstilo.Name & " " & oEstilo.isInUse()
Next
End Sub

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to