[Libreoffice-bugs] [Bug 95680] Convert - Metafile - Save Image... No function. Must use Alt+R
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 10 09:30:22 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=95680
--- Comment #12 from Julien Nabet <serval2412 at yahoo.fr> ---
https://opengrok.libreoffice.org/xref/core/sd/source/ui/view/drviews2.cxx?r=12bbcce5#1383
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?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200710/106504d8/attachment.htm>
More information about the Libreoffice-bugs
mailing list