summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-20 16:26:21 +0000
committerAndras Timar <andras.timar@collabora.com>2018-02-21 15:06:17 +0100
commite66edca7e21bfee9c0c1a431bf31a1e4818459f4 (patch)
tree59819ee5d4ae0891552d09263f09289ca24a8c5e /hwpfilter
parent6574ae5c8e8c89ed3b4f7e24db1b2bb8ecf60536 (diff)
forcepoint #1
Thanks to Antti Levomäki and Christian Jalio from Forcepoint. Change-Id: Ic5e9a9d0f8f8d35cb6b39e68338ba029948a4ce0
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpfile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h
index d58faa569a7b..3fab3a5b3dd4 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(); }
+ HWPPara *GetFirstPara(void) { return !plist.empty() ? plist.front() : nullptr; }
EmPicture *GetEmPicture(Picture *pic);
EmPicture *GetEmPictureByName(char * name);