Kaydet (Commit) e0985d7f authored tarafından Kohei Yoshida's avatar Kohei Yoshida Kaydeden (comit) Markus Mohrhard

fdo#37816: Fix a crasher in datapilot table when moving a field button.

Signed-off-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst d1670d61
...@@ -967,7 +967,10 @@ void ScDPSaveData::SetPosition( ScDPSaveDimension* pDim, long nNew ) ...@@ -967,7 +967,10 @@ void ScDPSaveData::SetPosition( ScDPSaveDimension* pDim, long nNew )
{ {
if (pDim == &(*it)) if (pDim == &(*it))
{ {
aDimList.erase(it); // Tell ptr_vector to give up ownership of this element. Don't
// delete this instance as it is re-inserted into the container
// later.
aDimList.release(it).release();
break; break;
} }
} }
......
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