summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-11-25 16:26:52 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-11-25 16:26:52 +0000
commit2552d446ae2c3989539e113c0273140acd8de15e (patch)
treee7af79b863e5dcc04ba0bb307ffc5893c1755a32 /sfx2
parent99af5068204abd98db0e184bb434e313de4cdda9 (diff)
INTEGRATION: CWS packrepair1 (1.172.14); FILE MERGED
2005/11/25 10:48:54 mav 1.172.14.1: #b6337950# catch the exception
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objstor.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 7fd056971b6f..c8a1ce70b335 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: objstor.cxx,v $
*
- * $Revision: 1.172 $
+ * $Revision: 1.173 $
*
- * last change: $Author: rt $ $Date: 2005-11-07 15:15:05 $
+ * last change: $Author: rt $ $Date: 2005-11-25 17:26:52 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -257,7 +257,16 @@ void impl_addToModelCollection(const css::uno::Reference< css::frame::XModel >&
xSMGR->createInstance(::rtl::OUString::createFromAscii("com.sun.star.frame.GlobalEventBroadcaster")),
css::uno::UNO_QUERY);
if (xModelCollection.is())
- xModelCollection->insert(css::uno::makeAny(xModel));
+ {
+ try
+ {
+ xModelCollection->insert(css::uno::makeAny(xModel));
+ }
+ catch ( uno::Exception& )
+ {
+ OSL_ENSURE( sal_False, "The document seems to be in the collection already!\n" );
+ }
+ }
}
//=========================================================================