Bug 165711 - Cannot resize frame containing image and caption
Summary: Cannot resize frame containing image and caption
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-12 21:52 UTC by Olivier Hallot
Modified: 2026-01-27 12:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file with issue in fram redimensioning. (62.03 KB, application/vnd.oasis.opendocument.text)
2025-03-12 21:52 UTC, Olivier Hallot
Details
Video how it works with 25.2.2 (15.62 MB, video/mp4)
2025-03-12 22:55 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2025-03-12 21:52:27 UTC
Created attachment 199776 [details]
sample file with issue in fram redimensioning.

The attached image shows the issue.

Figure 1 shows the frame wrapping the image and the caption. You can resize the frame and the image is resized.

Figure 2 shows the same image.

However the second frame cannot be resized. The Frame properties dialog does not show differences with the first frame.

The figure 1 has the following XML

<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Frame">
   <style:graphic-properties 
   fo:margin-left="0cm" 
   fo:margin-right="0cm" 
   fo:margin-top="0cm" 
   fo:margin-bottom="0cm" 
   style:wrap="dynamic" 
   style:number-wrapped-paragraphs="no-limit" 
   style:vertical-pos="top" 
   style:vertical-rel="baseline" 
   style:horizontal-pos="center" 
   style:horizontal-rel="paragraph" 
   fo:padding="0cm" 
   fo:border="none"/>
  </style:style>
  (...)
   <text:p text:style-name="Figure">
   <draw:frame 
   draw:style-name="fr1" 
   draw:name="Frame1" 
   text:anchor-type="as-char" 
   svg:width="5.782cm" 
   draw:z-index="2">
     <draw:text-box fo:min-height="3.914cm">
      <text:p text:style-name="P4"><draw:frame draw:style-name="fr2" draw:name="img_CG25202-002 Copy 1" text:anchor-type="as-char" svg:width="5.782cm" style:rel-width="100%" svg:height="3.914cm" style:rel-height="scale" draw:z-index="3">

And Figure 2 has 

  <style:style style:name="fr3" style:family="graphic" style:parent-style-name="Frame">
   <style:graphic-properties 
   fo:margin-left="0cm" 
   fo:margin-right="0cm" 
   fo:margin-top="0cm" 
   fo:margin-bottom="0cm" 
   style:protect="none" 
   style:vertical-pos="top" 
   style:vertical-rel="baseline" 
   style:horizontal-pos="center" 
   style:horizontal-rel="paragraph-content" 
   fo:background-color="transparent" 
   draw:fill="none" 
   draw:fill-color="#729fcf" 
   fo:padding="0cm" 
   fo:border="none" 
   draw:wrap-influence-on-position="once-concurrent" 
   loext:allow-overlap="false"/>
  </style:style>
     (...) 
   <text:p text:style-name="Figure">
   <draw:frame 
   draw:style-name="fr3" 
   draw:name="fram_CG25202-001" 
   text:anchor-type="as-char" 
   draw:z-index="0">
     <draw:text-box fo:min-height="3.403cm" fo:min-width="0.041cm">
      <text:p text:style-name="Figure"><draw:frame draw:style-name="fr4" draw:name="img_CG25202-002" text:anchor-type="as-char" svg:width="5.782cm" svg:height="3.914cm" draw:z-index="1"><draw:image draw:mime-type="image/png">

The suspicious extra parameter is that in Figure 2 with style fr3 is the attribute 

   style:protect="none" 

that may be mishandled in the code of the controller
Comment 1 m_a_riosv 2025-03-12 22:11:49 UTC
No issue for me with
Version: 24.8.6.1 (X86_64) / LibreOffice Community
Build ID: 051bf11303684a0a982c9966e8be766d0a9efbc7
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Please test in safe mode, Menu/Help/Restart in Safe Mode

Please paste here the information on Menu/Help/About LibreOffice (There is an icon to copy)
Comment 2 Olivier Hallot 2025-03-12 22:43:10 UTC
verified in

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pt-BR (pt_BR); UI: pt-BR
Calc: threaded

Verified in 

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: kf5 (cairo+wayland)
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Calc: threaded

Cannot resize frame around figure 2
Comment 3 m_a_riosv 2025-03-12 22:55:02 UTC
Created attachment 199777 [details]
Video how it works with 25.2.2

Version: 25.2.2.1 (X86_64) / LibreOffice Community
Build ID: 38d746d66d9b82fa248a2e90142b9dd3ddd1d6cd
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 4 Olivier Hallot 2025-03-12 23:56:16 UTC
Agree but you see that the frame does not shrink, only the the internal image.
Comment 5 QA Administrators 2025-11-25 15:25:26 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2025-11-25 15:38:22 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2026-01-27 12:17:28 UTC
If I right-click Figure 2 and go to Properties, in the Position and Size tab I see that AutoSize is checked for Width while it is unchecked in Figure 1. If I check it and click OK, the frame becomes one-dimensional at first, but I can resize it. I guess it's not a bug?

Arch Linux 64-bit
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: e7edd94565e8dd323395ec316c482ec32f14638c
CPU threads: 8; OS: Linux 6.18; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 23 January 2026