diff options
author | Sascha Ballach <sab@openoffice.org> | 2001-06-13 15:17:50 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2001-06-13 15:17:50 +0000 |
commit | 06e36bbd710852bca9b132c22b198a7f94a6b08d (patch) | |
tree | 406bfffd9972a83f2b73b1d1d4d0664c677f661f /sc/source/filter/xml/xmlstyli.cxx | |
parent | ef9e03278e903c0f08a1eabd5cfdbcd515011955 (diff) |
#88112#; test whether I get a style
Diffstat (limited to 'sc/source/filter/xml/xmlstyli.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlstyli.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlstyli.cxx b/sc/source/filter/xml/xmlstyli.cxx index f10cb1b70bb7..fa0f5a481322 100644 --- a/sc/source/filter/xml/xmlstyli.cxx +++ b/sc/source/filter/xml/xmlstyli.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlstyli.cxx,v $ * - * $Revision: 1.38 $ + * $Revision: 1.39 $ * - * last change: $Author: sab $ $Date: 2001-06-11 05:48:08 $ + * last change: $Author: sab $ $Date: 2001-06-13 16:17:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -611,8 +611,11 @@ void XMLTableStyleContext::FillPropertySet( if (!pStyle) { XMLTableStylesContext* pMyStyles = (XMLTableStylesContext *)GetScImport().GetStyles(); - pStyle = (SvXMLNumFormatContext *)pMyStyles-> - FindStyleChildContext(XML_STYLE_FAMILY_DATA_STYLE, sDataStyleName, sal_True); + if (pMyStyles) + pStyle = (SvXMLNumFormatContext *)pMyStyles-> + FindStyleChildContext(XML_STYLE_FAMILY_DATA_STYLE, sDataStyleName, sal_True); + else + DBG_ERROR("not possible to get style"); } if (pStyle) { |