Bug 142011 - Connector text disappears when "Adjust to contour" attribute is selected
Summary: Connector text disappears when "Adjust to contour" attribute is selected
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.1.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.0
Keywords:
Depends on:
Blocks: Textbox
  Show dependency treegraph
 
Reported: 2021-05-01 09:21 UTC by PeeWee
Modified: 2025-05-19 09:41 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
reproducer file (14.16 KB, application/vnd.oasis.opendocument.presentation)
2025-05-07 00:14 UTC, Jazevedo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PeeWee 2021-05-01 09:21:41 UTC
Description:
When changing text attributes to a connector, selecting the option "Adjust to contour" disables all other options for text attributes, which is normal behavior. Clicking OK to apply the text attribute closes the Text dialog and the text disappears from the connector.

Steps to Reproduce:
1. Draw a connector between two objects.
2. Select the connector so that the control points are visible.
3. Click on Insert Text Box to enter text mode.
4. Type the connector text.
5. Right-click on the text and select Text Attributes from the context menu to open the Text dialog.
6. Select "Adjust to contour" and all other options are disabled.
7. Click OK and the Text dialog closes. The text disappears.

Actual Results:
The text disappears from the connector.

Expected Results:
The text should follow the contour of the connector.


Reproducible: Always


User Profile Reset: No



Additional Info:
Asian and complex text layout are selected in Options > Language Settings > Languages.
This has also be tried with Asian and Complex text layout options deselected.
Comment 1 Regina Henschel 2021-05-02 18:16:11 UTC
I confirm your observation, same for straight lines.

"Adjust to contour" means, that the text inside a _closed_ polygon or legacy shape is broken into several lines, so that each line goes from one edge to the opposite edge. But neither connector nor straight lines are closed and they do not have an inner area, which could be filled with the text.

So for me the error is not, that the text disappears, but that the option "Adjust to contour" is provided for connectors and straight lines.

(In reply to PeeWee from comment #0) 
> Expected Results:
> The text should follow the contour of the connector.

I think, that the expectation is wrong. For to "follow the contour of the connector" the attribute "adjust to contour" is not suitable. You can use the "Fontwork" tool (.uno:FontWork) for that. It is currently not included in a toolbar or menu. You can customize a menu or toolbar to get it. It is command "Fontwork" in category "Format". It does not only allow "along the path", but you can in addition determine the distance to the line, the direction and the position of the text.
Comment 2 PeeWee 2021-05-03 11:20:30 UTC
After reading Comment 1, the option "Adjust to contour" should be made unavailable for Text Attributes for connector lines.
Suggest this option for Text Attributes is renamed to "Follow the contour" so that it follows the contour of a connector line or any other freeform line that can be drawn in LO Draw.
Comment 3 QA Administrators 2023-05-04 03:22:03 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2025-05-04 03:09:53 UTC Comment hidden (obsolete)
Comment 5 Jazevedo 2025-05-07 00:13:36 UTC
A bibisect indicates that this was introduced with this commit: 

tdf#138203: fixed identical menu at Draw and Impress

commit 2198e91676f186d86754fd1b511530b73cbe4a83	[log]
author	Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>	Mon Nov 23 09:50:56 2020 +0300
committer	Heiko Tietze <heiko.tietze@documentfoundation.org>	Mon Nov 23 12:50:05 2020 +0100
tree 47fb86c28ae1180e4be95ee0ee3a5c6d1645fa7d
parent 6b1de6057082bd8720594231839f967bff5372ae [diff]


https://git.libreoffice.org/core/+/2198e91676f186d86754fd1b511530b73cbe4a83%5E!


Version: 7.2.0.0.alpha0+
Build ID: 2198e91676f186d86754fd1b511530b73cbe4a83
CPU threads: 20; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Which like the commit name indicates was a bugfix for: tdf#138203

Before that commit the option for text attributes in this case with the connectors does not show up.

This is still reproducible in latest master.
Comment 6 Jazevedo 2025-05-07 00:14:21 UTC
Created attachment 200682 [details]
reproducer file
Comment 7 Commit Notification 2025-05-16 08:19:33 UTC
Gökay Şatır committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/106a8448a57d689c26d0c790c529b9ef3b0dc513

tdf#142011 - Text disappears if "Adjust to contour" selected.

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Jazevedo 2025-05-19 09:41:45 UTC
Tested this patch, and the issue is fixed. 

Tested on: 

Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: c854f5aaae575a0570f79a225b80b53ed420578c
CPU threads: 20; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded