[Libreoffice-commits] .: writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Thu Mar 1 02:56:45 PST 2012
writerfilter/source/rtftok/rtfdocumentimpl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 456a59b24d4ba5ac341f76b4302e82b687e97f69
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Thu Mar 1 11:56:08 2012 +0100
fix RTF import of drawing objects when there is no shape to send
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index fbe257c..ad45d96 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -3245,7 +3245,7 @@ int RTFDocumentImpl::popState()
aFrame = m_aStates.top().aFrame;
bPopFrame = true;
}
- else if (m_aStates.top().nDestinationState == DESTINATION_DRAWINGOBJECT)
+ else if (m_aStates.top().nDestinationState == DESTINATION_DRAWINGOBJECT && m_aStates.top().aDrawingObject.xShape.is())
{
RTFDrawingObject& rDrawing = m_aStates.top().aDrawingObject;
uno::Reference<drawing::XShape> xShape(rDrawing.xShape);
More information about the Libreoffice-commits
mailing list