• David Tardon's avatar
    fdo#64279 do not crash opening report for editing · 02d03eb4
    David Tardon yazdı
    There are two problems:
    
    1) The classes derived from SdrObject cache their SvxShape, but do not
       implement impl_setUnoShape().
    
    2) There is a lifetime issue in association of a SdrObject and its
       SvxShape. SvxDrawPage::CreateSdrObject not only creates a new SdrObject
       for a shape, but also inserts it into the page. At this point, the shape
       has not been attached to the object yet. That means that the object
       creates another shape at one point during the InsertObject call,
       which is then destroyed again. But reportdesign shapes own their
       objects, which means that destuction of the shape causes destruction
       of the object too...
    
       My first idea was to disable the insertion in
       SvxDrawPage::CreateSdrObject, but it has been there since the dawn of
       time, so I did not gather the courage to do that. Instead, I put in a
       hack to allow to skip the insertion.
    
    Change-Id: I888a54067be1934578434d8b476a13a7ff8d02b3
    02d03eb4
Adı
Son kayıt (commit)
Son güncelleme
..
doc Loading commit data...
inc Loading commit data...
qa/unoapi Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig/ui Loading commit data...
util Loading commit data...
workben/msview Loading commit data...
AllLangResTarget_gal.mk Loading commit data...
AllLangResTarget_ofa.mk Loading commit data...
AllLangResTarget_svx.mk Loading commit data...
AllLangResTarget_textconversiondlgs.mk Loading commit data...
Executable_gengal.bin.mk Loading commit data...
JunitTest_svx_unoapi.mk Loading commit data...
Library_svx.mk Loading commit data...
Library_svxcore.mk Loading commit data...
Library_textconversiondlgs.mk Loading commit data...
Makefile Loading commit data...
Module_svx.mk Loading commit data...
Package_gengal.mk Loading commit data...
Package_globlmn_hrc.mk Loading commit data...
README Loading commit data...
UIConfig_svx.mk Loading commit data...