summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-02-14 18:22:31 +0000
committerNiklas Nebel <nn@openoffice.org>2001-02-14 18:22:31 +0000
commit53872ad032e0f889786374258bbd43e0b339aa3f (patch)
tree4b77f1fe39aaa2af529f13756933fbf293c04818 /sc/source/ui/undo
parente18e403d88fb10f6eb33be3316c755e87158a74f (diff)
PasteFromClip needs document
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r--sc/source/ui/undo/undoblk.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx
index 8ddc8308f4c1..788b9c719a5b 100644
--- a/sc/source/ui/undo/undoblk.cxx
+++ b/sc/source/ui/undo/undoblk.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: undoblk.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:45:07 $
+ * last change: $Author: nn $ $Date: 2001-02-14 19:22:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -98,6 +98,7 @@
#include "docfunc.hxx"
#include "attrib.hxx"
#include "chgtrack.hxx"
+#include "transobj.hxx"
// STATIC DATA -----------------------------------------------------------
@@ -906,7 +907,11 @@ void __EXPORT ScUndoPaste::Repeat(SfxRepeatTarget& rTarget)
//? Extra-Flags sichern ?
if (rTarget.ISA(ScTabViewTarget))
- ((ScTabViewTarget&)rTarget).GetViewShell()->PasteFromClip( nFlags );
+ {
+ ScTransferObj* pOwnClip = ScTransferObj::GetOwnClipboard();
+ if (pOwnClip)
+ ((ScTabViewTarget&)rTarget).GetViewShell()->PasteFromClip( nFlags, pOwnClip->GetDocument() );
+ }
}
BOOL __EXPORT ScUndoPaste::CanRepeat(SfxRepeatTarget& rTarget) const