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

             Bug #: 45931
           Summary: [UNO] Y position of image anchored to cell offset by
                    72.27/72
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.4.5 release
          Platform: x86-64 (AMD64)
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Spreadsheet
        AssignedTo: libreoffice-bugs@lists.freedesktop.org
        ReportedBy: bugan...@gmail.com


I use following python code to put image inside a cell and align to left-top
and I must use code after '#######' to keep image away from going lower and 
lower in later rows.

ipos=uno.createUnoStruct("com.sun.star.awt.Point")
ipos.X=0
ipos.Y=0
img.setPosition(ipos)
img.setSize(isiz)
img.GraphicURL=headerurl
sheet.DrawPage.add(img)
img.Anchor=cell
#######
ipos=img.getPosition()
ipos.Y*=72/72.27
img.setPosition(ipos)


This may be related to this commit:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=3976f78ac001ad3d14d3fdcd6c53e967ea656037

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to