diff options
author | Justin Luth <justin.luth@collabora.com> | 2018-07-28 19:36:40 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2018-07-30 08:00:40 +0200 |
commit | 3f1eaebcbb39aeff0558218f0ce77f7e91424fa2 (patch) | |
tree | bdac6d76ccab7492f5c44ea7e487e278b2028f16 /writerfilter | |
parent | 1b21ff86effe58ae368457de8fec654ba4c8edd9 (diff) |
related tdf#72560 writerfilter: also check rPrDefaults
So far I've been fixated on paragraph properties, but styles
(both character and paragraph) also inherit the rPrDefaults.
One enhancement could be to check the styleType and skip
the paragraph stuff for character styles, but that doesn't
seem necessary or valuable at this point.
The unit test is pre-emptive.
Change-Id: I4e898f5fa573b62be4dc70512b02cdeb7b21e7c6
Reviewed-on: https://gerrit.libreoffice.org/58257
Reviewed-by: Justin Luth <justin_luth@sil.org>
Tested-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 469d8d0ce1fd..3a71b395acb7 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -731,6 +731,13 @@ uno::Any DomainMapper_Impl::GetPropertyFromStyleSheet(PropertyIds eId) if ( aProperty ) return aProperty->second; } + const PropertyMapPtr& pDefaultCharProps = GetStyleSheetTable()->GetDefaultCharProps(); + if ( pDefaultCharProps ) + { + boost::optional<PropertyMap::Property> aProperty = pDefaultCharProps->getProperty(eId); + if ( aProperty ) + return aProperty->second; + } } return uno::Any(); } |