diff options
author | Patrik Vas <vas.patrik.d@gmail.com> | 2018-12-31 15:23:25 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-12-31 18:30:44 +0100 |
commit | 04e41ba2d86921ce17214e2b70a277df7cf5f8ed (patch) | |
tree | c4cdceb3f9494c19d6dcf20f20dc4353ae30d545 /svtools/source | |
parent | 3acc80fe226df82738b5738d018532913bbc432d (diff) |
tdf#120037: Fix transition sidebar "None" scroll issue
Change-Id: Ibda8aa5e81598f903056d7ff6a03f8c2e8d7cb92
Reviewed-on: https://gerrit.libreoffice.org/65772
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'svtools/source')
-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 a02c8258c6c4..d0793aa997cc 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1703,7 +1703,7 @@ void ValueSet::SelectItem( sal_uInt16 nItemId ) bool bNewLine = false; // if necessary scroll to the visible area - if (mbScroll && nItemId && mnCols) + if (mbScroll && mnCols) { sal_uInt16 nNewLine = static_cast<sal_uInt16>(nItemPos / mnCols); if ( nNewLine < mnFirstLine ) |