diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-07-01 13:51:19 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-07-01 13:51:19 +0000 |
commit | 2278ae78ff0c7972f51d9f281ec69bc6f93566df (patch) | |
tree | 0b64ce51e70f28b0e6224892353becaf5a4e5c81 /svx/source/editeng/impedit2.cxx | |
parent | INTEGRATION: CWS vcl14 (1.47.112); FILE MERGED (diff) | |
download | core-2278ae78ff0c7972f51d9f281ec69bc6f93566df.tar.gz core-2278ae78ff0c7972f51d9f281ec69bc6f93566df.zip |
INTEGRATION: CWS vcl14 (1.86.22); FILE MERGED
2003/06/26 13:09:26 mt 1.86.22.1: #i9286# catch all when calling getTransferData()
Diffstat (limited to 'svx/source/editeng/impedit2.cxx')
-rw-r--r-- | svx/source/editeng/impedit2.cxx | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/svx/source/editeng/impedit2.cxx b/svx/source/editeng/impedit2.cxx index 29cd601067d3..d864913965c4 100644 --- a/svx/source/editeng/impedit2.cxx +++ b/svx/source/editeng/impedit2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: impedit2.cxx,v $ * - * $Revision: 1.87 $ + * $Revision: 1.88 $ * - * last change: $Author: vg $ $Date: 2003-06-24 07:39:50 $ + * last change: $Author: vg $ $Date: 2003-07-01 14:51:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3363,11 +3363,18 @@ EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransfer SotExchange::GetFormatDataFlavor( SOT_FORMAT_STRING, aFlavor ); if ( rxDataObj->isDataFlavorSupported( aFlavor ) ) { - uno::Any aData = rxDataObj->getTransferData( aFlavor ); - ::rtl::OUString aText; - aData >>= aText; - aNewSelection = ImpInsertText( rPaM, aText ); - bDone = TRUE; + try + { + uno::Any aData = rxDataObj->getTransferData( aFlavor ); + ::rtl::OUString aText; + aData >>= aText; + aNewSelection = ImpInsertText( rPaM, aText ); + bDone = TRUE; + } + catch( ... ) + { + ; // #i9286# can happen, even if isDataFlavorSupported returns true... + } } } } |