Skip to content

Instantly share code, notes, and snippets.

@iandol
Last active December 6, 2015 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iandol/99469b06863faf0d84a3 to your computer and use it in GitHub Desktop.
Save iandol/99469b06863faf0d84a3 to your computer and use it in GitHub Desktop.
LibreOffice 5.1 regression see https://bugs.documentfoundation.org/show_bug.cgi?id=96245 — it appears this is to do with a new requirement that all draw:frame elements need draw:name properties in LO V5.1
<text:p>
<draw:frame text:anchor-type="as-char" draw:style-name="fr1" svg:width="95%">
<draw:text-box>
<text:p>
<draw:frame text:anchor-type="as-char" draw:z-index="1" >
<draw:image xlink:href="Test1.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
<text:p>Figure 1—Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah</text:p>
</draw:text-box>
</draw:frame>
</text:p>
<text:p text:style-name="Standard">Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah.</text:p>
<text:p>
<draw:frame text:anchor-type="as-char" draw:style-name="fr1" svg:width="95%">
<draw:text-box>
<text:p>
<draw:frame text:anchor-type="as-char" draw:z-index="1" >
<draw:image xlink:href="Test2.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
<text:p>Figure 2—Blah blah blah</text:p>
</draw:text-box>
</draw:frame>
</text:p>
<text:p text:style-name="Standard">
<draw:frame draw:style-name="fr1" text:anchor-type="as-char" svg:width="0.041cm" style:rel-width="95%" draw:z-index="0">
<draw:text-box fo:min-height="0cm">
<text:p text:style-name="Frame_20_contents">
<draw:frame draw:style-name="fr2" draw:name="1" text:anchor-type="as-char" svg:width="0.566cm" svg:height="0.566cm" draw:z-index="1">
<draw:image xlink:href="Test1.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
<text:p text:style-name="Frame_20_contents">Figure 1—Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah</text:p>
</draw:text-box>
</draw:frame>
</text:p>
<text:p text:style-name="Standard">Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah Blah blah blah.</text:p>
<text:p text:style-name="Standard">
<draw:frame draw:style-name="fr1" draw:name="2" text:anchor-type="as-char" svg:width="0.041cm" style:rel-width="95%" draw:z-index="2">
<draw:text-box fo:min-height="0cm">
<text:p text:style-name="Frame_20_contents">
<draw:frame draw:style-name="fr2" draw:name="3" text:anchor-type="as-char" svg:width="0.566cm" svg:height="0.566cm" draw:z-index="3">
<draw:image xlink:href="Test2.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
<text:p text:style-name="Frame_20_contents">Figure 2—Blah blah blah</text:p>
</draw:text-box>
</draw:frame>
</text:p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment