diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index d99f1d7f8cbc..9f1c72cd7ab1 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1037,7 +1037,7 @@ size_t ValueSet::ImplGetItem( const Point& rPos, bool bMove ) const if (x < mnItemWidth && y < mnItemHeight) { // the point is inside item rect and not inside spacing - const size_t item = (mnFirstLine + row) * mnCols + col; + const size_t item = (mnFirstLine + row) * static_cast<size_t>(mnCols) + col; if (item < mItemList.size()) { return item; |