diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-20 16:26:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-21 10:26:47 +0100 |
commit | 9ff1a2e861d247df5a9406c1cd33abce73f9a3e9 (patch) | |
tree | 46bf776f1a005ab516d8050f24985b487e9ebcba /hwpfilter | |
parent | f9de525ed646a37e6bc28a40ec1152a613db9218 (diff) |
forcepoint #1
Thanks to Antti Levomäki and Christian Jalio from Forcepoint.
Change-Id: Ic5e9a9d0f8f8d35cb6b39e68338ba029948a4ce0
Reviewed-on: https://gerrit.libreoffice.org/50053
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpfile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h index e4f27e44c187..f39681ffad84 100644 --- a/hwpfilter/source/hwpfile.h +++ b/hwpfilter/source/hwpfile.h @@ -227,7 +227,7 @@ class DLLEXPORT HWPFile HWPInfo& GetHWPInfo(void) { return _hwpInfo; } HWPFont& GetHWPFont(void) { return _hwpFont; } HWPStyle& GetHWPStyle(void) { return _hwpStyle; } - HWPPara *GetFirstPara(void) { return plist.front().get(); } + HWPPara *GetFirstPara(void) { return !plist.empty() ? plist.front().get() : nullptr; } EmPicture *GetEmPicture(Picture *pic); EmPicture *GetEmPictureByName(char * name); |