About opening odc file and mpView null

julien2412 serval2412 at yahoo.fr
Sat Dec 10 14:01:19 UTC 2016


Hello,

When opening directly odc file then going to data series of the charts, then
area tab and finally bitmap, I got a crash.
SdrEditView::GetGeoAttrFromMarked (this=0x0) at
/home/julien/lo/libreoffice/svx/source/svdraw/svdedtv1.cxx:1278
1278	    SfxItemSet aRetSet(mpModel->GetItemPool(),   //
SID_ATTR_TRANSFORM_... from s:svxids.hrc
(gdb) bt
#0  SdrEditView::GetGeoAttrFromMarked (this=0x0) at
/home/julien/lo/libreoffice/svx/source/svdraw/svdedtv1.cxx:1278
#1  0x00002aaae3ba0f87 in SvxBitmapTabPage::Reset (this=0x55555b164e00,
rAttrs=0x55555b223a50) at
/home/julien/lo/libreoffice/cui/source/tabpages/tpbitmap.cxx:278
#2  0x00002aaae3b98cfc in SvxAreaTabPage::CreatePage
(this=this at entry=0x55555b282670, nId=nId at entry=4, pTab=0x55555b164e00)
    at /home/julien/lo/libreoffice/cui/source/tabpages/tparea.cxx:413


A bit of debug shows the problem comes from mpView not initialized in
SvxBitmapTabPage ctr and that's because there's no pViewShell
(see
http://opengrok.libreoffice.org/xref/core/cui/source/tabpages/tpbitmap.cxx#143) 

Any idea how to initialize mpView in this specific case? (since I don't
reproduce this when opening the chart from ods file for example)

BTW, I haven't yet created a bugtracker yet because I'd like to push first
the fix for tdf#104534 ("crashes when Pattern area type is selected in Chart
column").

Julien



--
View this message in context: http://nabble.documentfoundation.org/About-opening-odc-file-and-mpView-null-tp4202317.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list