diff options
author | Eike Rathke <erack@redhat.com> | 2015-01-20 21:33:23 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-01-20 21:39:59 +0100 |
commit | ef9d28a3605b7e3e1e68212cc44f7379fd2f464a (patch) | |
tree | a920cb89e6d5953facee6f8fb7028fe30544deb2 | |
parent | 46f51b4659e772c07c0ebfe5fe64aeb830e2a992 (diff) |
it's unnecessary to obtain the marked object in move mode, fdo#88339 followup
... just to determine there's nothing to do in that case.
Change-Id: Ic962a5420afc5216e750b7fb578a4844ab6fc54a
-rw-r--r-- | sc/source/ui/drawfunc/fupoor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/drawfunc/fupoor.cxx b/sc/source/ui/drawfunc/fupoor.cxx index d66a293bcacf..ea7759e0c3c4 100644 --- a/sc/source/ui/drawfunc/fupoor.cxx +++ b/sc/source/ui/drawfunc/fupoor.cxx @@ -339,12 +339,12 @@ bool FuPoor::doConstructOrthogonal() const } // Detect image and resize proportionally, but don't constrain movement by default - if (pView->AreObjectsMarked()) + if (!bIsMoveMode && pView->AreObjectsMarked()) { const SdrMarkList& rMarkList = pView->GetMarkedObjectList(); if (rMarkList.GetMarkCount() == 1) { - if (rMarkList.GetMark(0)->GetMarkedSdrObj()->GetObjIdentifier() == OBJ_GRAF && !bIsMoveMode) + if (rMarkList.GetMark(0)->GetMarkedSdrObj()->GetObjIdentifier() == OBJ_GRAF) { return true; } |