<br><br><div class="gmail_quote">2012/11/22 Maciej Rumianowski <span dir="ltr"><<a href="mailto:maciej.rumianowski@gmail.com" target="_blank">maciej.rumianowski@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">2012/11/22 Maciej Rumianowski <span dir="ltr"><<a href="mailto:maciej.rumianowski@gmail.com" target="_blank">maciej.rumianowski@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Bjoern,<br><br><div class="gmail_quote">I have hit a problem that i don't fully understand. Disabled items are SfxVoidItem with Which 0, but inserted with different one. State of Item is check with TYPE Macro as below<br>



<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">if ( (*ppFnd)->Type() == TYPE(SfxVoidItem) )<br>                        return SFX_ITEM_DISABLED;<br>

</blockquote></div></blockquote></div><div>I've found the way it compiles and run (below), i will also check if the above line is working, tests seem to not touch that code and thats why it never crashed.<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">

if( (*ppFnd)->StaticType() == SfxVoidItem::StaticType() )<br></blockquote></div></div></blockquote><div> </div>Ok I lack knowledge about inheritance and what really is called. Above are not equal :(<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
(gdb) print (*ppFnd)->StaticType() == (*ppFnd)->Type()<br>$7 = false<br></blockquote><div> </div><div>But why I get error accessing Type() at  <br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
0x4496cb31 in SfxItemSet::~SfxItemSet (this=0xbfff51e8, __in_chrg=<optimized out>) at /home/maciej/programowanie/<blockquote class="gmail_quote">libreoffice/libo/svl/source/items/itemset.cxx:314<br>314                    if( (*ppFnd)->Type() == TYPE(SfxVoidItem) )</blockquote>
</blockquote>Best Regards<br>    Maciek<br></div></div><br>