diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-12-12 20:31:17 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-12-12 20:31:17 +0000 |
commit | 4bc1a194c095ef7b96755bda6da4974f16e1ce38 (patch) | |
tree | e752dccdb51b443af22ee52cc56583387281674f /sc/source/ui/drawfunc/fusel.cxx | |
parent | 948b0ec2f8cf069afa6398cc7f3cab1b0024f468 (diff) |
#95834# don't start drag timer for the mouse click that ended inplace editing
Diffstat (limited to 'sc/source/ui/drawfunc/fusel.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/fusel.cxx | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx index d78563dbceb0..816332d56294 100644 --- a/sc/source/ui/drawfunc/fusel.cxx +++ b/sc/source/ui/drawfunc/fusel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fusel.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: nn $ $Date: 2001-03-02 21:09:13 $ + * last change: $Author: nn $ $Date: 2001-12-12 21:31:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -210,6 +210,11 @@ BOOL __EXPORT FuSelection::MouseButtonDown(const MouseEvent& rMEvt) } } + // Is another object being edited in this view? + // (Editing is ended in MarkListHasChanged - test before UnmarkAll) + SfxInPlaceClient* pClient = pViewShell->GetIPClient(); + BOOL bWasOleActive = ( pClient && pClient->IsInPlaceActive() ); + // Markieren if ( !rMEvt.IsShift() ) @@ -222,7 +227,13 @@ BOOL __EXPORT FuSelection::MouseButtonDown(const MouseEvent& rMEvt) //******************************************************** if (pView->IsMarkedHit(aMDPos)) { - aDragTimer.Start(); + // #95834# Don't start drag timer if inplace editing of an OLE object + // was just ended with this mouse click - the view will be moved + // (different tool bars) and the object that was clicked on would + // be moved unintentionally. + if ( !bWasOleActive ) + aDragTimer.Start(); + pHdl=pView->HitHandle(aMDPos, *pWindow); pView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl); bReturn = TRUE; |