svtools/source/control/valueset.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 04e41ba2d86921ce17214e2b70a277df7cf5f8ed Author: Patrik Vas <[email protected]> AuthorDate: Mon Dec 31 15:23:25 2018 +0100 Commit: Tamás Zolnai <[email protected]> CommitDate: Mon Dec 31 18:30:44 2018 +0100 tdf#120037: Fix transition sidebar "None" scroll issue Change-Id: Ibda8aa5e81598f903056d7ff6a03f8c2e8d7cb92 Reviewed-on: https://gerrit.libreoffice.org/65772 Reviewed-by: Tamás Zolnai <[email protected]> Tested-by: Tamás Zolnai <[email protected]> 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 ) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
