summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2017-12-21 07:49:35 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2017-12-27 16:34:13 +0100
commit828a7ffd3e76d21d65edb822299ca0c5a2b70ef2 (patch)
tree83c7aa6d37f15b26767ba5bcad3055170adf154d /svx
parentdf1a10dafd3a2263d6e46edcaa6e6c0a64a80598 (diff)
Do not overwrite data with same value
After emplace_back there are at least 2 elements, and GetPrevPos would point to previous back(). Commit 5e913234da65484778d53179ee2005aec01d0f0e removed a possible modification of such data, so this operation is now pointless. Change-Id: Ia5bec5e9b16e9dc9f34c7cf1dbb8e3f17510d83b
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svddrag.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/svx/source/svdraw/svddrag.cxx b/svx/source/svdraw/svddrag.cxx
index ce0637eebb61..5e123ffbd4c1 100644
--- a/svx/source/svdraw/svddrag.cxx
+++ b/svx/source/svdraw/svddrag.cxx
@@ -72,9 +72,7 @@ void SdrDragStat::NextMove(const Point& rPnt)
void SdrDragStat::NextPoint()
{
- Point aPnt(mvPnts.back());
mvPnts.emplace_back(aRealNow);
- mvPnts[GetPrevPos()] = aPnt;
}
void SdrDragStat::PrevPoint()