From 53872ad032e0f889786374258bbd43e0b339aa3f Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Wed, 14 Feb 2001 18:22:31 +0000 Subject: PasteFromClip needs document --- sc/source/ui/undo/undoblk.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sc/source/ui/undo') 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 -- cgit