Kaydet (Commit) 828a7ffd authored tarafından Matteo Casalin's avatar Matteo Casalin

Do not overwrite data with same value

After emplace_back there are at least 2 elements, and GetPrevPos
would point to previous back().
Commit 5e913234 removed
a possible modification of such data, so this operation is now
pointless.

Change-Id: Ia5bec5e9b16e9dc9f34c7cf1dbb8e3f17510d83b
üst df1a10da
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment