summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-11-10 10:56:12 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-11-10 10:56:41 +0100
commite2a54eb75c6d754d48a546fda4df65fdcc19111e (patch)
treea61f9918131d5ba3845d84cf8266c0df8884ffeb /sw
parent26364f4fd346c36f2c3ba4c2228d62de845fe13e (diff)
DocxAttributeOutput::FlyFrameGraphic: add assert to avoid misuse of the API
Change-Id: I5d09e297294439fafad94177d8e87ccdf829b18d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 9a9b30faab65..45abbf61e6ca 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -1991,6 +1991,8 @@ void DocxAttributeOutput::DefaultStyle( sal_uInt16 nStyle )
void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode* pGrfNode, const Size& rSize, const SwFlyFrmFmt* pOLEFrmFmt, SwOLENode* pOLENode )
{
OSL_TRACE( "TODO DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode* pGrfNode, const Size& rSize, const SwFlyFrmFmt* pOLEFrmFmt, SwOLENode* pOLENode ) - some stuff still missing" );
+ // detect mis-use of the API
+ assert(pGrfNode || (pOLEFrmFmt && pOLENode));
const SwFrmFmt* pFrmFmt = pGrfNode ? pGrfNode->GetFlyFmt() : pOLEFrmFmt;
// create the relation ID
OString aRelId;