Kaydet (Commit) cef587ce authored tarafından Caolán McNamara's avatar Caolán McNamara

hdo is always a HWPDrawingObject

Change-Id: Ia9484304e9fc3c5bc9aa833bf14711203e9e72fe
Reviewed-on: https://gerrit.libreoffice.org/62306Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9cb5deaa
......@@ -359,8 +359,8 @@ Picture::Picture()
Picture::~Picture()
{
if( pictype == PICTYPE_DRAW && picinfo.picdraw.hdo )
delete static_cast<HWPDrawingObject *>(picinfo.picdraw.hdo);
if (pictype == PICTYPE_DRAW)
delete picinfo.picdraw.hdo;
}
......
......@@ -549,12 +549,14 @@ struct PicDefOle
void *hwpole;
};
struct HWPDrawingObject;
/**
* @short Drawing object of hwp
*/
struct PicDefDraw
{
void *hdo;
HWPDrawingObject *hdo;
uint zorder;
ZZRect vrect;
int mbrcnt;
......
......@@ -3968,7 +3968,7 @@ void HwpReader::makePicture(Picture * hbox)
if( hbox->picinfo.picdraw.zorder > 0 )
padd("draw:z-index", sXML_CDATA,
ascii(Int2Str( hbox->picinfo.picdraw.zorder + 10000, "%d", buf)));
makePictureDRAW( static_cast<HWPDrawingObject *>(hbox->picinfo.picdraw.hdo), hbox);
makePictureDRAW(hbox->picinfo.picdraw.hdo, hbox);
break;
case PICTYPE_UNKNOWN:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment