<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Convert - Metafile - Save Image... No function. Must use Alt+R"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=95680#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Convert - Metafile - Save Image... No function. Must use Alt+R"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=95680">bug 95680</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre><a href="https://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviews2.cxx?r=12bbcce5#1383">https://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviews2.cxx?r=12bbcce5#1383</a>

when it works, we got:
#0  XOutBitmap::WriteGraphic(Graphic const&, rtl::OUString&, rtl::OUString
const&, XOutFlags, Size const*,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const*)
    (rGraphic=..., rFileName="file:///tmp/testjul.jpg", rFilterName="jpg",
nFlags=(XOutFlags::DontAddExtension | XOutFlags::DontExpandFilename |
XOutFlags::UseNativeIfPossible), pMtfSize_100TH_MM=0x0,
pFilterData=0x7ffffffe8c98) at svx/source/xoutdev/_xoutbmp.cxx:193
#1  0x00007ffff251eb30 in GraphicHelper::ExportGraphic(weld::Window*, Graphic
const&, rtl::OUString const&) (pParent=0x40411e0, rGraphic=...,
rGraphicName="") at svx/source/core/graphichelper.cxx:318
#2  0x00007fffde98ad20 in sd::DrawViewShell::FuTemporary(SfxRequest&)
(this=0x34a1540, rReq=...) at sd/source/ui/view/drviews2.cxx:1407

the save is done if this following if is ok:
   1383                 if (pObj && pObj->GetGraphicType() ==
GraphicType::Bitmap)
   1384                 {
   1385                     weld::Window* pFrame = GetFrameWeld();
   1386                     GraphicAttr aGraphicAttr = pObj->GetGraphicAttr();

Once it's converted to metafile, since pObj->GetGraphicType() =
GraphicType::GdiMetafile we don't enter the if block and so nothing happens.

If you reconvert to bitmap again, save works.

Tomaž: any thoughts here? Should an error popup appear to indicate we can't
save 
the file in metafile? Or should Save option work but should only propose EMF or
other metafile formats?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>