diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index ba315f55e6ce..15ad17d8b62d 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -2994,7 +2994,7 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan if(!m_sName.isEmpty()) pDoc->SetFlyName((SwFlyFrameFormat&)*pFrameFormat, m_sName); } - else if( pEmbeddedObject || pStreamName ) + else if (pEmbeddedObject) { uno::Reference< embed::XEmbeddedObject > obj; (*pEmbeddedObject) >>= obj;