summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2002-07-12 16:01:07 +0000
committerEike Rathke <er@openoffice.org>2002-07-12 16:01:07 +0000
commit28fe441ee7562d91b448f496a8d7a2c8bc5095bf (patch)
treeccbfcb040b788de5469e9984540b98bd3d06354a /sc
parent7c7659b5c167c2787f69bb8fb6ede98ab4b0ae93 (diff)
#99759# #i5438# PasteDraw: set the right object shell
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewfun7.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewfun7.cxx b/sc/source/ui/view/viewfun7.cxx
index f86ea524c1f0..f305b29bac2b 100644
--- a/sc/source/ui/view/viewfun7.cxx
+++ b/sc/source/ui/view/viewfun7.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewfun7.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: nn $ $Date: 2001-12-12 21:32:40 $
+ * last change: $Author: er $ $Date: 2002-07-12 17:01:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -258,7 +258,13 @@ void ScViewFunc::PasteDraw( const Point& rLogicPos, SdrModel* pModel,
if (pRef)
pRef->SetMapMode( aOldMapMode );
- GetViewData()->GetViewShell()->SetDrawShell( TRUE );
+ // GetViewData()->GetViewShell()->SetDrawShell( TRUE );
+ // #99759# It is not sufficient to just set the DrawShell if we pasted, for
+ // example, a chart. SetDrawShellOrSub() would only work for D&D in the
+ // same document but not if inserting from the clipboard, therefore
+ // MarkListHasChanged() is what we need.
+ pDrawView->MarkListHasChanged();
+
}
BOOL ScViewFunc::PasteObject( const Point& rPos, SvInPlaceObject* pObj,