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

            Bug ID: 154090
           Summary: Pasting a large drawing object from outside a chart
                    into a chart can make it go beyond the chart area. It
                    should get scale down.
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Chart
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 90486, 108741

Created attachment 185855
  --> https://bugs.documentfoundation.org/attachment.cgi?id=185855&action=edit
test document

Steps:

1. Open Writer or Calc
2. Insert > Chart (use defaults)
3. Exist chart editing mode
4. Draw a drawing object (e.g. a line) that is wider than the width of the
chart area, copy it
5. Enter chart edit mode and paste the drawing object

(or use attachment to directly copy-paste object into chart)

Results:
Object overflows, goes beyond the chart area. This means that at least one of
the handle is not reachable, and that the rest of the chart is scaled down to
fit the drawing object when exiting edit mode.

Expected:
Drawing object is scaled down to fit the chart area.

Notes:
- Also reproducible with pasting a Fontwork object
- MS Office, when following the same steps, scales down the object so it fits
in the chart area.
- We already make it hard to end up with a drawing object bigger than the chart
area, by blocking movement when it reaches the edges, and by automatically
resetting size values when change by hand.
- If this is fixed, Bug 154065 would probably also be fixed (unless there is
another way to end up with an overflowing drawing object)
- We need to consider what to do with files that already have this kind of
chart. MS Office removes the overflowing object from the chart at fileopen
(tested both ODF and OOXML), which makes this issue a risk of dataloss. I feel
like scaling it down is less problematic, and would be consistent with what
should happen when pasting it in.

Repro in:

Version: 6.0.0.3
Build ID: 64a0f66915f38c6217de274f0aa8e15618924765
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group

And in recent master build:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 288c0920a8475f9f2c537212e04aa7649192ad8c
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

In OOo 3.3, we could already paste the unchanged object in the chart, but the
chart would not be squished when exiting edit mode.

OpenOffice.org 3.3.0
OOO330m20 (Build:9567)


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=90486
[Bug 90486] [META] Chart bugs and enhancements
https://bugs.documentfoundation.org/show_bug.cgi?id=108741
[Bug 108741] [META] Shapes bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to