Bug 165912 - Caption box has wrong dimensions on rotated image
Summary: Caption box has wrong dimensions on rotated image
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Caption
  Show dependency treegraph
 
Reported: 2025-03-26 08:26 UTC by bugs.documentfoundation-sammy
Modified: 2025-03-28 10:17 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
bisection-image (86.94 KB, application/pdf)
2025-03-28 03:35 UTC, Saburo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugs.documentfoundation-sammy 2025-03-26 08:26:19 UTC
Description:
Caption boxes should take into account if images have been rotated.

Steps to Reproduce:
1. Insert an image.
2. Rotate the image by 90 degree.
3. Add a caption.

Actual Results:
The caption has the dimensions for the unrotated image.

Expected Results:
The caption box should take the rotation into account.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: qt5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Debian package version: 4:25.2.1-3~bpo12+1
Calc: threaded
Comment 1 mikhail.machine 2025-03-26 09:44:53 UTC
Hello,

Thank you for reporting the bug. Can you see if bug 132579 is similar to your problem so that I can mark your report as a duplicate of it? (Later bugs are generally marked as duplicates of earlier bugs).
Comment 2 bugs.documentfoundation-sammy 2025-03-26 10:02:46 UTC
Hi,

thanks for the fast reply. I'm not 100% sure, if this is the same bug. It seems that the file in the mentioned bug is not rotated.
But maybe the underlying problem is the same - I could only guess...
Comment 3 raal 2025-03-26 16:36:48 UTC
I can confirm with Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2dd493c86e532eea636b1ca8aed35fb1214eb750
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Works in Version: 5.2.0.0.alpha0+
Comment 4 Saburo 2025-03-28 03:35:04 UTC
Created attachment 200055 [details]
bisection-image

I don't understand which dimension the reporter is referring to. Is it the image height not fitting within the frame as in version 6.4.5, or the width as in version 6.0?
Comment 5 bugs.documentfoundation-sammy 2025-03-28 08:01:28 UTC
Ah, I knew I couldn't be the first one to experience this.

It seems to be exactly the same behavior as 6.4.5.+ in your file.

Is there a corresponding issue I can refer to and close this one?

Thanks for pointing that out.
Comment 6 Saburo 2025-03-28 10:17:47 UTC
No, there are no similar bug reports.

commit 90cc23eabdbc9248192a584c3dc41444cdab3bfd
author	Caolán McNamara <caolanm@redhat.com>	Wed May 06 11:06:45 2020 +0100

Resolves: tdf#123801 captioning issues

revert attempt to by default create a msword roundtrip friendly caption.

Resolves: tdf#116474 bring hidden text property under undo control

rework setting hidden property on line break

in msword the hard-break between image and caption has a width

coverity#1372378 Dereference null return value

Related: tdf#93676 default to as-char inside captions