diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-03 22:44:22 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-03 22:44:22 +0200 |
commit | 27a4d5597c0757611d0e2e682d0c05441859cc4e (patch) | |
tree | b4d49fe5d4459cddfb13ecf67c3322949d6a6e78 /xmloff | |
parent | 926275d07184d441b3bfa1ceca26c4c1f2bc61db (diff) |
Fixes to compiler errors, setRegressionProperties description.
Change-Id: I40ef93746e5f2a43ce58f0080db0b643e22404a1
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLSeries2Context.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx index e01a8ae14b88..a955d321b013 100644 --- a/xmloff/source/chart/SchXMLSeries2Context.cxx +++ b/xmloff/source/chart/SchXMLSeries2Context.cxx @@ -871,7 +871,7 @@ void SchXMLSeries2Context::setStylesToRegressionCurves( try { OUString aServiceName; - XMLPropStyleContext* pPropStyleContext; + XMLPropStyleContext* pPropStyleContext = NULL; if (!rCurrentStyleName.isEmpty()) { @@ -910,7 +910,8 @@ void SchXMLSeries2Context::setStylesToRegressionCurves( if( xRegCurve.is()) { Reference< beans::XPropertySet > xCurveProperties( xRegCurve, uno::UNO_QUERY ); - pPropStyleContext->FillPropertySet( xCurveProperties ); + if( pPropStyleContext != NULL) + pPropStyleContext->FillPropertySet( xCurveProperties ); xRegCurve->setEquationProperties( iStyle->m_xEquationProperties ); } |