Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


Hi Matteo,

I noticed a crash that's probably related to your (otherwise great :-)
), text background editeng work -- care to take a look?

1) Start Writer, enable form controls toolbar (View -> Toolbars -> Form controls)
2) Click the more controls button, pick the Date Field
3) Draw a rectangle in the body text area to create an instance
4) Try to query its background color via UNO: Tools -> Macros ->
Organize macros -> Basic -> Edit, then type:

print ThisComponent.DrawPage(0).CharBackColor

and Press F5 to run, it crashes with:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3b4d9fc in SfxItemSet::Get (this=0x1dfaa00, nWhich=0, bSrchInParent=true) at 
/home/vmiklos/git/libreoffice/master/svl/source/items/itemset.cxx:1002
1002        DBG_ASSERT( !pItem->ISA(SfxSetItem) ||
(gdb) bt 10
#0  0x00007ffff3b4d9fc in SfxItemSet::Get (this=0x1dfaa00, nWhich=0, bSrchInParent=true) at 
/home/vmiklos/git/libreoffice/master/svl/source/items/itemset.cxx:1002
#1  0x00007fffd2cc9de6 in SdrObject::GetMergedItem (this=0x226b140, nWhich=0) at 
/home/vmiklos/git/libreoffice/master/svx/source/svdraw/svdobj.cxx:2113
#2  0x00007fffd2ea856e in SvxShape::_getPropertyValue (this=0x21c1f38, 
PropertyName="CharBackColor") at 
/home/vmiklos/git/libreoffice/master/svx/source/unodraw/unoshape.cxx:1797

nWhich = 0 sounds buggy, maybe you advertise your new UNO property in a
generic property map, but in case of form controls, the underlying
implementation doesn't handle that?

Thanks,

Miklos

Attachment: signature.asc
Description: Digital signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.