summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-04-18 11:13:51 +0000
committerOliver Bolte <obo@openoffice.org>2005-04-18 11:13:51 +0000
commitcb54183e05949e7c1b7a38c56848ae8e090dcd83 (patch)
tree60dfb1fedbd522b45b2caa1c3ac9bb9bfe00e100 /embeddedobj
parent0954cd83f2f829275da0bcdff0bcfdd5b2ba613e (diff)
INTEGRATION: CWS fwkfinal8 (1.11.2); FILE MERGED
2005/04/01 10:22:45 mav 1.11.2.1: #i46367# throw correct exception in case of windows scenario
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/oleembed.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx
index b8b9779377b8..49917e713788 100644
--- a/embeddedobj/source/msole/oleembed.cxx
+++ b/embeddedobj/source/msole/oleembed.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: oleembed.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: obo $ $Date: 2005-03-15 11:38:59 $
+ * last change: $Author: obo $ $Date: 2005-04-18 12:13:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -116,6 +116,11 @@ void OleEmbeddedObject::SwitchComponentToRunningState_Impl()
{
m_pOleComponent->RunObject();
}
+ catch( embed::UnreachableStateException& )
+ {
+ GetRidOfComponent();
+ throw;
+ }
catch( embed::WrongStateException& )
{
GetRidOfComponent();
@@ -125,7 +130,7 @@ void OleEmbeddedObject::SwitchComponentToRunningState_Impl()
else
#endif
{
- throw embed::WrongStateException();
+ throw embed::UnreachableStateException();
}
}