Kaydet (Commit) cfbcce70 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: fdo#37691 \shptxt ... \jpegblip

text shape with jpeg data, should we throw away
the text shape here or keep it ?

Change-Id: I9e4463b5863bf68cdcd18ea5d1f6c831a0de8ec9
üst 4f917d47
......@@ -808,9 +808,14 @@ int RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing::XSh
if (xShape.is())
{
uno::Reference<lang::XServiceInfo> xSI(xShape, uno::UNO_QUERY_THROW);
assert(xSI->supportsService("com.sun.star.drawing.GraphicObjectShape"));
if (!xSI->supportsService("com.sun.star.drawing.GraphicObjectShape"))
{
//fdo37691-1.rtf
SAL_WARN("writerfilter.rtf", "cannot set graphic on existing shape, creating a new GraphicObjectShape");
xShape.set(NULL);
}
}
else
if (!xShape.is())
{
if (m_xModelFactory.is())
xShape.set(m_xModelFactory->createInstance("com.sun.star.drawing.GraphicObjectShape"), uno::UNO_QUERY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment