summaryrefslogtreecommitdiff
path: root/basctl/source/dlged
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2002-02-04 14:42:53 +0000
committerThomas Benisch <tbe@openoffice.org>2002-02-04 14:42:53 +0000
commit96bd54275ae74eb62a8de57e2e8f15557d4c98f1 (patch)
tree8d3d0c2d1e4dde64772084298c4e874ccd970dcb /basctl/source/dlged
parent5b5db6ec2bf8e9a6569f9d2fec4a0564bc27d854 (diff)
#97213# Clipboard doesn't work correct in the dialog editor
Diffstat (limited to 'basctl/source/dlged')
-rw-r--r--basctl/source/dlged/dlged.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index 3b588598d27d..6aa5e1b947f7 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dlged.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: tbe $ $Date: 2002-01-22 09:06:16 $
+ * last change: $Author: tbe $ $Date: 2002-02-04 15:42:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -735,8 +735,12 @@ void DlgEditor::Paste()
for( sal_uInt32 n = 0; n < nCtrls; n++ )
{
Any aA = xNameAcc->getByName( pNames[n] );
- Reference< ::com::sun::star::awt::XControlModel > xCtrlModel;
- aA >>= xCtrlModel;
+ Reference< ::com::sun::star::awt::XControlModel > xCM;
+ aA >>= xCM;
+
+ // clone the control model
+ Reference< util::XCloneable > xClone( xCM, uno::UNO_QUERY );
+ Reference< awt::XControlModel > xCtrlModel( xClone->createClone(), uno::UNO_QUERY );
DlgEdObj* pCtrlObj = new DlgEdObj();
pCtrlObj->SetDlgEdForm(pDlgEdForm); // set parent form