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

            Bug ID: 161844
           Summary: Off-by-one error in rectangle size returned by
                    XToolkit::getWorkArea
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

Consider this code:

Sub ShowScreenSize()
    screenRectangle =
CreateUnoService("com.sun.star.awt.Toolkit").getWorkArea()
    MsgBox screenRectangle.Width & " x " & screenRectangle.Height
End Sub

According to the documentation [1], it returns the size and position of the
primary display. On my system, the code gives "1919 x 1079", instead of
expected "1920 x 1080".

[1]
https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XToolkit.html#a29f80014339cc32d254de3be5cb22057

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

Reply via email to