From 5acaaf11e1cf33757915539440516b1cc66b4e1d Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Tue, 3 Feb 2004 18:05:04 +0000 Subject: INTEGRATION: CWS dialogdiet (1.1.1.1.526); FILE MERGED 2003/11/28 17:48:47 mba 1.1.1.1.526.1: #i22972#: make factory aware of multiple inits --- svx/source/engine3d/objfac3d.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'svx/source/engine3d/objfac3d.cxx') diff --git a/svx/source/engine3d/objfac3d.cxx b/svx/source/engine3d/objfac3d.cxx index c6b6e32e2fad..bf2487588650 100644 --- a/svx/source/engine3d/objfac3d.cxx +++ b/svx/source/engine3d/objfac3d.cxx @@ -2,9 +2,9 @@ * * $RCSfile: objfac3d.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:01:15 $ + * last change: $Author: hr $ $Date: 2004-02-03 19:05:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -117,9 +117,15 @@ |* \************************************************************************/ +static BOOL bInit = FALSE; + E3dObjFactory::E3dObjFactory() { - SdrObjFactory::InsertMakeObjectHdl(LINK(this, E3dObjFactory, MakeObject)); + if ( !bInit ) + { + SdrObjFactory::InsertMakeObjectHdl(LINK(this, E3dObjFactory, MakeObject)); + bInit = TRUE; + } } /************************************************************************* -- cgit