crashtesting: further failure to reload forum-de3-6592.docx
git show -w Change-Id: I2963833726779d784bcdfa772e152e65dfde3af5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177674 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
parent
adfbf35c0c
commit
6091e6b0ed
1 changed files with 49 additions and 46 deletions
|
@ -730,6 +730,8 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken
|
|||
|
||||
// Apply character color of the shape to the shape's textbox.
|
||||
uno::Reference<text::XText> xText(mxShape, uno::UNO_QUERY);
|
||||
if (xText)
|
||||
{
|
||||
uno::Any xCharColor = xPropertySet->getPropertyValue(u"CharColor"_ustr);
|
||||
Color aColor = COL_AUTO;
|
||||
if ((xCharColor >>= aColor) && aColor != COL_AUTO)
|
||||
|
@ -751,8 +753,8 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken
|
|||
xParagraph, uno::UNO_QUERY);
|
||||
if (!runEnumAccess.is())
|
||||
continue;
|
||||
if (uno::Reference<beans::XPropertySet> xParaPropSet{ xParagraph,
|
||||
uno::UNO_QUERY })
|
||||
if (uno::Reference<beans::XPropertySet> xParaPropSet{
|
||||
xParagraph, uno::UNO_QUERY })
|
||||
if ((xParaPropSet->getPropertyValue(u"ParaBackColor"_ustr)
|
||||
>>= aColor)
|
||||
&& aColor != COL_AUTO)
|
||||
|
@ -771,8 +773,8 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken
|
|||
|| xRunState->getPropertyState(u"CharColor"_ustr)
|
||||
== beans::PropertyState_DEFAULT_VALUE)
|
||||
{
|
||||
uno::Reference<beans::XPropertySet> xRunPropSet(xRun,
|
||||
uno::UNO_QUERY);
|
||||
uno::Reference<beans::XPropertySet> xRunPropSet(
|
||||
xRun, uno::UNO_QUERY);
|
||||
if (!xRunPropSet)
|
||||
continue;
|
||||
if ((xRunPropSet->getPropertyValue(u"CharBackColor"_ustr)
|
||||
|
@ -789,6 +791,7 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (xPropertySetInfo && xPropertySetInfo->hasPropertyByName(u"TextWordWrap"_ustr))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue