[Libreoffice-commits] core.git: svtools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Dec 31 17:31:06 UTC 2018
svtools/source/control/valueset.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 04e41ba2d86921ce17214e2b70a277df7cf5f8ed
Author: Patrik Vas <vas.patrik.d at gmail.com>
AuthorDate: Mon Dec 31 15:23:25 2018 +0100
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
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 <tamas.zolnai at collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
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 )
More information about the Libreoffice-commits
mailing list