diff options
Diffstat (limited to 'hwpfilter/source/hpara.cxx')
-rw-r--r-- | hwpfilter/source/hpara.cxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx index 7b474bdba72d..9bbd9a3da8d4 100644 --- a/hwpfilter/source/hpara.cxx +++ b/hwpfilter/source/hpara.cxx @@ -29,29 +29,29 @@ #include "hbox.h" #include "hutil.h" -bool LineInfo::Read(HWPFile & hwpf, HWPPara *pPara) +void LineInfo::Read(HWPFile & hwpf, HWPPara *pPara) { if (!hwpf.Read2b(pos)) - return false; + return; unsigned short tmp16; if (!hwpf.Read2b(tmp16)) - return false; + return; space_width = tmp16; if (!hwpf.Read2b(tmp16)) - return false; + return; height = tmp16; // internal information if (!hwpf.Read2b(tmp16)) - return false; + return; pgy = tmp16; if (!hwpf.Read2b(tmp16)) - return false; + return; sx = tmp16; if (!hwpf.Read2b(tmp16)) - return false; + return; psx = tmp16; if (!hwpf.Read2b(tmp16)) - return false; + return; pex = tmp16; height_sp = 0; @@ -62,8 +62,6 @@ bool LineInfo::Read(HWPFile & hwpf, HWPPara *pPara) pPara->pshape.reserved[0] = sal::static_int_cast<unsigned char>(pex & 0x01); pPara->pshape.reserved[1] = sal::static_int_cast<unsigned char>(pex & 0x02); } - - return (!hwpf.State()); } HWPPara::HWPPara() |