cui/source/tabpages/textattr.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit ad6eaf4559ad4e788dd07ae497a195840ae300ee Author: Gökay Şatır <gokaysa...@gmail.com> AuthorDate: Tue May 13 16:02:37 2025 +0300 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Thu May 15 10:44:35 2025 +0200 tdf#142011 - Text disappears if "Adjust to contour" selected. Steps to reproduce - from the bug report: 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. And the suggested solution is to hide the mentioned option. Because it is not applicable for certain objects. While i debug, i saw that also "line" objects are problematic with "Adjust to contour" option. So i also hid the option for line objects. Signed-off-by: Gökay Şatır <gokaysa...@gmail.com> Change-Id: I81974eaae66eccc33da66c623256fbcb977ffb42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185256 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/cui/source/tabpages/textattr.cxx b/cui/source/tabpages/textattr.cxx index 73eb5e215fd5..c93b276bb2be 100644 --- a/cui/source/tabpages/textattr.cxx +++ b/cui/source/tabpages/textattr.cxx @@ -455,6 +455,11 @@ void SvxTextAttrPage::Construct() m_xDrawingText->hide(); m_xCustomShapeText->show(); break; + case SdrObjKind::Edge: + case SdrObjKind::Line: + //contour NOT possible for connector and line objects + bContourEnabled = false; + break; default: bFitToSizeEnabled = bContourEnabled = true; bWordWrapTextEnabled = bAutoGrowSizeEnabled = bAutoGrowWidthEnabled = bAutoGrowHeightEnabled = false;