diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2005-02-17 10:15:13 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2005-02-17 10:15:13 +0000 |
commit | 1241ba9ff9009215c09269f10b4fc20a4e776c2a (patch) | |
tree | 35a987ff666f47098b82366e5691eb6e78fc3b1d /svtools/source | |
parent | fa865e598f5d3b5523ffe9814330db5189f532be (diff) |
INTEGRATION: CWS dba23 (1.6.238); FILE MERGED
2005/01/19 08:03:09 oj 1.6.238.1: #118850# check if impl structure is NULL
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/config/colorcfg.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx index c59c2540762f..bf2a326a056d 100644 --- a/svtools/source/config/colorcfg.cxx +++ b/svtools/source/config/colorcfg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: colorcfg.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: hjs $ $Date: 2004-06-25 17:24:09 $ + * last change: $Author: vg $ $Date: 2005-02-17 11:15:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -302,17 +302,19 @@ ColorConfig_Impl::~ColorConfig_Impl() // ----------------------------------------------------------------------------- void ColorConfig_Impl::DisableBroadcast() { - ColorConfig::m_pImpl->m_bIsBroadcastEnabled = sal_False; + if ( ColorConfig::m_pImpl ) + ColorConfig::m_pImpl->m_bIsBroadcastEnabled = sal_False; } // ----------------------------------------------------------------------------- void ColorConfig_Impl::EnableBroadcast() { - ColorConfig::m_pImpl->m_bIsBroadcastEnabled = sal_True; + if ( ColorConfig::m_pImpl ) + ColorConfig::m_pImpl->m_bIsBroadcastEnabled = sal_True; } // ----------------------------------------------------------------------------- sal_Bool ColorConfig_Impl::IsEnableBroadcast() { - return ColorConfig::m_pImpl->m_bIsBroadcastEnabled; + return ColorConfig::m_pImpl ? ColorConfig::m_pImpl->m_bIsBroadcastEnabled : sal_False; } /* -----------------------------22.03.2002 14:38------------------------------ |