diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-11-23 00:32:48 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2014-11-24 14:44:56 +0200 |
commit | 2af68258f1c6d7a77226475ee48e28357262fda8 (patch) | |
tree | f8c18104dfdb1531d81c6b4710cf4fdeab2d877b | |
parent | 762a6171cd34ec6a16fff07cf9af0d323741253f (diff) |
Related: fdo#83572 Deactivate previous function when inserting object
Change-Id: I790202676210e6724c369996f26651ab5307ee72
(cherry picked from commit 2497285dcaf135e55daf273607ed86575c8032ac)
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index c8b6c07f498e..00d1b0dd01be 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -1159,7 +1159,10 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) case SID_ATTR_TABLE: { SetCurrentFunction( FuInsertOLE::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); - + // Set the selection tool as the old one. This in particular important for the + // zoom function, in which clicking without dragging zooms as well, and that + // makes exiting the object editing mode impossible. + SetOldFunction( FuSelection::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); Cancel(); rReq.Ignore (); |