docx import: don't apply complex font size to non-complex font

OOXML spec says:
"[szCs] specifies the font size which shall be applied to all
complex script characters in the contents of this run when displayed"

Change-Id: I0faf599e38ef5a2e2005bb6f98874639be7d8287
Reviewed-on: https://gerrit.libreoffice.org/1454
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2012-12-20 15:39:37 +01:00 committed by Miklos Vajna
parent 59074c09b8
commit 73731b01cd

View file

@ -2130,8 +2130,6 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
if( NS_sprm::LN_CHpsBi == nSprmId )
{
rContext->Insert( PROP_CHAR_HEIGHT_COMPLEX, true, aVal );
// Also set Western, but don't overwrite it.
rContext->Insert( PROP_CHAR_HEIGHT, true, aVal, false );
}
else
{