https://bugs.documentfoundation.org/show_bug.cgi?id=165711

            Bug ID: 165711
           Summary: Cannot resize frame containing image and caption
           Product: LibreOffice
           Version: 25.8.0.0 alpha0+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 199776
  --> https://bugs.documentfoundation.org/attachment.cgi?id=199776&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to