diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-02 10:44:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-03 08:21:40 +0200 |
commit | b447687292334687a371b66d7ad56ba9662b898e (patch) | |
tree | 6b41db824b55a3e6c8417342a13f78fef7e2415d /svx/source | |
parent | 2537d2dd496c0d05042ca33b99760de79df67682 (diff) |
cid#1194914 Overflowed return value
Change-Id: I0f06d0c631632e2dcbba706a17830033aae6f365
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index fa7dcc34bbe5..41683222da0b 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -4237,7 +4237,9 @@ sal_Int16 SAL_CALL FmXListBoxCell::getSelectedItemPos() throw( RuntimeException, if (m_pBox) { UpdateFromColumn(); - return m_pBox->GetSelectEntryPos(); + sal_Int32 nPos = m_pBox->GetSelectEntryPos(); + assert(nPos < SHRT_MAX); + return nPos; } return 0; } |