Bug 151973 - joining, subtracting, fusing shapes with modified line width resets the line type to "none", line width to 0
Summary: joining, subtracting, fusing shapes with modified line width resets the line ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.3.6.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2022-11-09 09:50 UTC by birnbach@posteo.de
Modified: 2022-11-11 10:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description birnbach@posteo.de 2022-11-09 09:50:32 UTC
Description:
When two shapes are combined (e.g. join, subtract, combin) the resulting shape has line style 'none' and line width '0,0 pt'. If the shape's color matches the background, it is invisible. Also, its properties cannot be changed directly.

When the shape is created, it is automatically selected. However, its attribues are not shown in the properties section so they cannot be changed. For changing them the shape must be deselected and selected again. 

Note that actions combine, split, join and break pose no problem. 


Steps to Reproduce:
1. create a first shape (e.g. flat rectangle)
2. create second shape (e.g. vertical rectangle)
3. align first and second shapes so that they overlap
4. select both shapes and select shape->subtract from the context menu


Actual Results:
The resulting shape has invisible lines. The properties pane shows the slide's properties instead of the shape's properties. 

Expected Results:
The resulting shape has the same line properties as the first or second shape.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 6; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2022-11-10 09:20:06 UTC
I can't confirm on Linux, might be mac-specific.

LibreOffice 7.2 will not see any new release, could you please test a supported version? (7.3 or 7.4)
Comment 2 birnbach@posteo.de 2022-11-11 09:23:38 UTC
Version: 7.3.7.2 / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 6; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

The problem persists but is less reproducible.

Seems to have to do with manually set line widths. The resulting shape is often OK if the border width of the two shapes is left untouched. Should it be set (to any width) the resulting shape loses its border.
Comment 3 Stéphane Guillou (stragu) 2022-11-11 10:09:43 UTC
Right, I can reproduce now, with the following steps:

1) Create a rectangle
2) Right-click > Line > Line tab; see that the default is continuous style and width of 0.
3) Change width to something higher, e.g. 0.10 cm
4) Repeat steps 1 to 3 with another rectangle that partly overlaps the first one (or duplicate the first one)
5) Select both rectangles, e.g. with Shift + click
6) Shape > Subtract
7) Right-click on resulting shape, see Line properties

Actual result:

Line style has been reset to none; Line width has been reset to 0.
The line style change does not happen if the line width has not been changed.

Expected result:

When line properties are the same, resulting subtracted shape needs to keep those properties.

Reproduced in:

Version: 7.3.6.2 / LibreOffice Community
Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and:

Version: 6.3.6.2
Build ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded

and

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