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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I am converting Asian Typography tab page to the new widgets

I have modified the files acording to the tutorial given by Caolán but
I am experiencing a crash on a piece of code (after clicking OK in Calc)

warn:svl:15906:1:svl/source/items/itempool.cxx:857: unknown which - dont
ask me for defaults, with ID/pos 10901

Program received signal SIGSEGV, Segmentation fault.
0x00007fffd48ba696 in SvxAsianTabPage::FillItemSet (this=0x1d01ae0,
rSet=...)
    at /home/tdf/git/core/cui/source/tabpages/paragrph.cxx:2264
2264                pPool->GetWhich(SID_ATTR_PARA_SCRIPTSPACE)).Clone();


The lines to watch are:


sal_Bool        SvxAsianTabPage::FillItemSet( SfxItemSet& rSet )
{
    sal_Bool bRet = sal_False;
    SfxItemPool* pPool = rSet.GetPool();
    if(m_pScriptSpaceCB->IsChecked() != m_pScriptSpaceCB->GetSavedValue())
    {
        SfxBoolItem* pNewItem = (SfxBoolItem*)rSet.Get(
            pPool->GetWhich(SID_ATTR_PARA_SCRIPTSPACE)).Clone();
        pNewItem->SetValue(m_pScriptSpaceCB->IsChecked());
        rSet.Put(*pNewItem);
        delete pNewItem;
        bRet = sal_True;
    }

For Writer, Impress and Draw I don't have a crash.

Any advise welcome
- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
The Document Foundation, Zimmerstr. 69, 10117 Berlin, Germany
Fundação responsável civilmente, de acordo com o direito civil
Detalhes Legais: http://www.documentfoundation.org/imprint
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRGVDbAAoJEJp3R7nH3vLxyrgH/RCKWb2zKOsqZb2P3ZlRimHg
VNNxMHuWhyv8VeI4cxpETkCucdBjogN5QtLUinAhWhSs9RSRVsn3fos97Vv/Likb
N9qezozZ6bGBSRwXklzg/Fop1vcKTEskHzpLTyg4a1YzPpZCtP2ZekwzjXVhNbPZ
2YphLu4hC8iaL0jCFZwuMN6s+31KfA7B0nk4zA3HmrI/y9s4yZ968/VbxgwbxoVY
ll9xLKWMLWu+N/MCw79rvCTNm7iczUGfHou+dtUuNjNu1wGHXlD98gmrliTJ0AaN
QXTvdRTVIqQu6J62/m/yKhXjLQ6T/Le0u4GsDXV28xPkn5jyiaFPAMjP2xjV8dg=
=g6v3
-----END PGP 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.