diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-11-11 16:10:06 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-11-11 21:35:19 +0100 |
commit | 8eec78d3fb715987a81cf17d6363343d59ae10f4 (patch) | |
tree | 98f2280d1d6ff482323e19d9e7f31a583ad53dc1 /xmloff/source/style | |
parent | 33a32bb1e19eb4cd9017c3e2016d165f38dc7c7d (diff) |
xmloff: print a warning if we drop a style on the floor
Turns out we do not support section styles.
Change-Id: I2858c639c1c9743f53836548b4c73645fa32d87b
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/prstylei.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/style/prstylei.cxx b/xmloff/source/style/prstylei.cxx index 7870e02f5150..bc00a86c944c 100644 --- a/xmloff/source/style/prstylei.cxx +++ b/xmloff/source/style/prstylei.cxx @@ -368,7 +368,10 @@ void XMLPropStyleContext::CreateAndInsert( bool bOverwrite ) Reference < XNameContainer > xFamilies = pSvXMLStylesContext->GetStylesContainer( GetFamily() ); if( !xFamilies.is() ) + { + SAL_WARN("xmloff", "no styles container for family " << GetFamily()); return; + } bool bNew = false; if( xFamilies->hasByName( rName ) ) |