[Libreoffice-commits] .: writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Fri Nov 11 15:08:31 PST 2011
writerfilter/source/dmapper/PropertyMap.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 843494285d4f403440942c57d39e77b525a2057c
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Sat Nov 12 00:07:26 2011 +0100
Related: fdo#38966 null pointer check for the unit test
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx
index 700581a..84180c9 100644
--- a/writerfilter/source/dmapper/PropertyMap.cxx
+++ b/writerfilter/source/dmapper/PropertyMap.cxx
@@ -368,7 +368,7 @@ uno::Reference< beans::XPropertySet > SectionPropertyMap::GetPageStyle(
{
if( bFirst )
{
- if( !m_sFirstPageStyleName.getLength() )
+ if( !m_sFirstPageStyleName.getLength() && xPageStyles.is() )
{
uno::Sequence< ::rtl::OUString > aPageStyleNames = xPageStyles->getElementNames();
m_sFirstPageStyleName = lcl_FindUnusedPageStyleName(aPageStyleNames);
More information about the Libreoffice-commits
mailing list