<div dir="ltr">This patch is for fixing the crash and generate an "inadmissible data type" dialog.<div><div><br></div><div>Thorsten, I checked again and it seems to me that the code now "follows" CharUnderlineColor everywhere.</div>

</div><div>But I have no idea about the other name CharUnderlineColor is mapped to.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 2:20 PM, Miklos Vajna <span dir="ltr"><<a href="mailto:vmiklos@collabora.co.uk" target="_blank">vmiklos@collabora.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matteo,<br>
<br>
I noticed a crash that's probably related to your (otherwise great :-)<br>
), text background editeng work -- care to take a look?<br>
<br>
1) Start Writer, enable form controls toolbar (View -> Toolbars -> Form controls)<br>
2) Click the more controls button, pick the Date Field<br>
3) Draw a rectangle in the body text area to create an instance<br>
4) Try to query its background color via UNO: Tools -> Macros -><br>
Organize macros -> Basic -> Edit, then type:<br>
<br>
print ThisComponent.DrawPage(0).CharBackColor<br>
<br>
and Press F5 to run, it crashes with:<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
0x00007ffff3b4d9fc in SfxItemSet::Get (this=0x1dfaa00, nWhich=0, bSrchInParent=true) at /home/vmiklos/git/libreoffice/master/svl/source/items/itemset.cxx:1002<br>
1002        DBG_ASSERT( !pItem->ISA(SfxSetItem) ||<br>
(gdb) bt 10<br>
#0  0x00007ffff3b4d9fc in SfxItemSet::Get (this=0x1dfaa00, nWhich=0, bSrchInParent=true) at /home/vmiklos/git/libreoffice/master/svl/source/items/itemset.cxx:1002<br>
#1  0x00007fffd2cc9de6 in SdrObject::GetMergedItem (this=0x226b140, nWhich=0) at /home/vmiklos/git/libreoffice/master/svx/source/svdraw/svdobj.cxx:2113<br>
#2  0x00007fffd2ea856e in SvxShape::_getPropertyValue (this=0x21c1f38, PropertyName="CharBackColor") at /home/vmiklos/git/libreoffice/master/svx/source/unodraw/unoshape.cxx:1797<br>
<br>
nWhich = 0 sounds buggy, maybe you advertise your new UNO property in a<br>
generic property map, but in case of form controls, the underlying<br>
implementation doesn't handle that?<br>
<br>
Thanks,<br>
<br>
Miklos<br>
</blockquote></div><br></div>