<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:philipz85@hotmail.com" title="Yousuf Philips (jay) <philipz85@hotmail.com>"> <span class="fn">Yousuf Philips (jay)</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Pasting direct formatted text in cell edit mode doesn't always retain the original direct formatting"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=108559">bug 108559</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;">CC</td>
<td>
</td>
<td>erack@redhat.com, philipz85@hotmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Blocks</td>
<td>108252
</td>
<td>102593
</td>
</tr>
<tr>
<td style="text-align:right;">Summary</td>
<td>Calc changes font to bold when the user tries to change the font size
</td>
<td>Pasting direct formatted text in cell edit mode doesn't always retain the original direct formatting
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Pasting direct formatted text in cell edit mode doesn't always retain the original direct formatting"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=108559#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Pasting direct formatted text in cell edit mode doesn't always retain the original direct formatting"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=108559">bug 108559</a>
from <span class="vcard"><a class="email" href="mailto:philipz85@hotmail.com" title="Yousuf Philips (jay) <philipz85@hotmail.com>"> <span class="fn">Yousuf Philips (jay)</span></a>
</span></b>
<pre>As <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=134117" name="attach_134117" title="alternate steps and demo to shed light on the core problem">attachment 134117</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=134117&action=edit" title="alternate steps and demo to shed light on the core problem">[details]</a></span> tackles the core issue, lets focus this bug on it. So lets
look at the code.
<style:style style:name="ce1" style:family="table-cell" ...>
<style:table-cell-properties ... />
<style:paragraph-properties ... />
<style:text-properties fo:color="#ffffff" ... fo:font-weight="bold" ... />
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties fo:font-weight="normal" ... />
</style:style>
<style:style style:name="T2" style:family="text">
<style:text-properties fo:font-weight="bold" ... />
</style:style>
<table:table-cell table:style-name="ce1" ...>
<text:p>DD D
<text:span text:style-name="T1">o</text:span>
<text:span text:style-name="T2">D</text:span>
<text:span text:style-name="T1">o</text:span></text:p>
</table:table-cell>
What can be seen is that 'DD D' is set to bold at the cell level and not at the
span level, so from this view, it is understandable that when you paste the
beginning 'DD D' that it wouldnt be set to bold, as it would look like so.
<table:table-cell table:style-name="ce1" ...>
<text:p>DD D
<text:span text:style-name="T1">o</text:span>
<text:span text:style-name="T2">D</text:span>
<text:span text:style-name="T1">o DD Do</text:span>
<text:span text:style-name="T2">D</text:span>
<text:span text:style-name="T1">o</text:span></text:p>
</table:table-cell>
So not sure what could be done differently to make this work as expected, when
the cell contents wasnt fully created with direct formatting in cell edit mode.
@Eike: Any thoughts?</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] Paste bugs and enhancements"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=102593">Bug 102593</a>] [META] Paste bugs and enhancements
</li>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [META] Cell-related bugs and enhancements"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=108252">Bug 108252</a>] [META] Cell-related bugs and enhancements
</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>