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() ...@@ -359,8 +359,8 @@ Picture::Picture()
Picture::~Picture() Picture::~Picture()
{ {
if( pictype == PICTYPE_DRAW && picinfo.picdraw.hdo ) if (pictype == PICTYPE_DRAW)
delete static_cast<HWPDrawingObject *>(picinfo.picdraw.hdo); delete picinfo.picdraw.hdo;
} }
......
...@@ -549,12 +549,14 @@ struct PicDefOle ...@@ -549,12 +549,14 @@ struct PicDefOle
void *hwpole; void *hwpole;
}; };
struct HWPDrawingObject;
/** /**
* @short Drawing object of hwp * @short Drawing object of hwp
*/ */
struct PicDefDraw struct PicDefDraw
{ {
void *hdo; HWPDrawingObject *hdo;
uint zorder; uint zorder;
ZZRect vrect; ZZRect vrect;
int mbrcnt; int mbrcnt;
......
...@@ -3968,7 +3968,7 @@ void HwpReader::makePicture(Picture * hbox) ...@@ -3968,7 +3968,7 @@ void HwpReader::makePicture(Picture * hbox)
if( hbox->picinfo.picdraw.zorder > 0 ) if( hbox->picinfo.picdraw.zorder > 0 )
padd("draw:z-index", sXML_CDATA, padd("draw:z-index", sXML_CDATA,
ascii(Int2Str( hbox->picinfo.picdraw.zorder + 10000, "%d", buf))); 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; break;
case PICTYPE_UNKNOWN: case PICTYPE_UNKNOWN:
break; 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