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

            Bug ID: 153304
           Summary: Changing as-char object properties via UNO API behaves
                    wrong
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 185043
  --> https://bugs.documentfoundation.org/attachment.cgi?id=185043&action=edit
A sample with two images

The attachment has first image anchored as-character to the empty second
paragraph, and the second image anchored to paragraph 3, positioned to the
right of the paragraph, and wrapped optimally.

Executing these two Basic commands:

  ThisComponent.GraphicObjects(0).setPropertyValue("RelativeWidth", 80)
  ThisComponent.GraphicObjects(0).setPropertyValue("RelativeHeight", 80)

is expected to make the first (as-char) image much larger, and shift the last
paragraph down (presumably the second image would not fit to the first page;
possibly it would need to move to the second page, together with the last
paragraph, which is its anchor point).

Three problems arise:

1. The document does not get "modified" state after the macro.
2. There is no "undo" after the macro.
3. The layout of the document gets broken: the first image moves somewhere to
the bottom of the first page (out from its paragraph, despite being anchored as
character) - its *empty* frame is partially visible there *at some scroll
positions* below the second, to-paragraph image.

It is possible that the last problem is independent from the first two.

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

Reply via email to