diff options
author | Sascha Ballach <sab@openoffice.org> | 2001-11-28 06:48:53 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2001-11-28 06:48:53 +0000 |
commit | 7bdc81d5d1cc2b8cd4eb35ee906235c6736623e4 (patch) | |
tree | ad95e8f613057e28b4511a5418b94b80343cf141 | |
parent | ef3765639f85b8dc95d7ca6a0d5942c196857297 (diff) |
#95115#; try to give the created mapper the FontDecls if not given
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 66664afedc67..94d6bce35da5 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: txtimp.cxx,v $ * - * $Revision: 1.88 $ + * $Revision: 1.89 $ * - * last change: $Author: dvo $ $Date: 2001-10-25 12:37:12 $ + * last change: $Author: sab $ $Date: 2001-11-28 07:48:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -708,6 +708,8 @@ SvXMLImportPropertyMapper *XMLTextImportHelper::CreateCharExtPropMapper(SvXMLImp { XMLPropertySetMapper *pPropMapper = new XMLTextPropertySetMapper( TEXT_PROP_MAP_TEXT ); + if (!pFontDecls) + pFontDecls = const_cast<XMLFontStylesContext*>(rImport.GetFontDecls()); return new XMLTextImportPropertyMapper( pPropMapper, rImport, pFontDecls ); } @@ -715,6 +717,8 @@ SvXMLImportPropertyMapper *XMLTextImportHelper::CreateParaExtPropMapper(SvXMLImp { XMLPropertySetMapper *pPropMapper = new XMLTextPropertySetMapper( TEXT_PROP_MAP_SHAPE_PARA ); + if (!pFontDecls) + pFontDecls = const_cast<XMLFontStylesContext*>(rImport.GetFontDecls()); return new XMLTextImportPropertyMapper( pPropMapper, rImport, pFontDecls ); } |