<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - copy/pasting revisions copy deleted words"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=106746">bug 106746</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Priority</td>
<td>medium
</td>
<td>high
</td>
</tr>
<tr>
<td style="text-align:right;">Blocks</td>
<td>
</td>
<td>83946
</td>
</tr>
<tr>
<td style="text-align:right;">Severity</td>
<td>minor
</td>
<td>normal
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - copy/pasting revisions copy deleted words"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=106746#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - copy/pasting revisions copy deleted words"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=106746">bug 106746</a>
from <span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span></b>
<pre>The problem is with the following piece of change:
<a href="https://cgit.freedesktop.org/libreoffice/core/diff/sw/source/core/doc/DocumentContentOperationsManager.cxx?id=db17d3c17c40d6b0e92392cf3c6e343d1d17b771">https://cgit.freedesktop.org/libreoffice/core/diff/sw/source/core/doc/DocumentContentOperationsManager.cxx?id=db17d3c17c40d6b0e92392cf3c6e343d1d17b771</a>
The pointer in pDelPam actually needs to be preserved here:
pDelPam.reset(new SwPaM( *pCpyStt, pDelPam.get() ));
The following change fixes the behavior by releasing the smart pointer:
pDelPam.reset(new SwPaM( *pCpyStt, pDelPam.release() ));
Is the code otherwise correct? I'm surprised working with an invalid pointer
didn't cause a serious issue.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [META] Tracking changes issues"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=83946">Bug 83946</a>] [META] Tracking changes issues
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>