Kaydet (Commit) ba1ae835 authored tarafından Michael Stahl's avatar Michael Stahl

oox: fix 0-pointer crash in sd_import_tests

(regression from 43efd9b4)

Change-Id: Ib8ee521cf8142000cbd38a7475772cc3455f7357
üst 36692428
...@@ -361,8 +361,13 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, ::oo ...@@ -361,8 +361,13 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, ::oo
else if (rBackgroundFillStyle.mnThemedIdx != 0) else if (rBackgroundFillStyle.mnThemedIdx != 0)
if (const Theme* pTheme = rFilterBase.getCurrentTheme()) if (const Theme* pTheme = rFilterBase.getCurrentTheme())
{ {
aBgColor = pTheme->getFillStyle(rBackgroundFillStyle.mnThemedIdx)->getBestSolidColor(); FillProperties const*const pStyle(
nPhClr = rBackgroundFillStyle.maPhClr.getColor(rFilterBase.getGraphicHelper()); pTheme->getFillStyle(rBackgroundFillStyle.mnThemedIdx));
if (pStyle)
{
aBgColor = pStyle->getBestSolidColor();
nPhClr = rBackgroundFillStyle.maPhClr.getColor(rFilterBase.getGraphicHelper());
}
} }
if (aBgColor.isUsed()) if (aBgColor.isUsed())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment