svx/source/tbxctrls/StylesPreviewWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 170fbb1ffc2b47dd6ade7c719685c91c19c9bdf5 Author: Szymon Kłos <eszka...@gmail.com> AuthorDate: Wed Jun 3 13:22:54 2020 +0200 Commit: Szymon Kłos <eszka...@gmail.com> CommitDate: Wed Jun 3 13:22:54 2020 +0200 Fix build Change-Id: Ic06fc28b0ca07e0c96cd9288fa7a958772b62651 diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx b/svx/source/tbxctrls/StylesPreviewWindow.cxx index 48fd9ad6237f..806b168c5857 100644 --- a/svx/source/tbxctrls/StylesPreviewWindow.cxx +++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx @@ -388,7 +388,7 @@ StylesPreviewWindow_Base::~StylesPreviewWindow_Base() OUString StylesPreviewWindow_Base::GetVisibleStyle(unsigned nPosition) { - if (nPosition < 0 || nPosition >= STYLES_COUNT || !m_aAllStyles.size()) + if (nPosition >= STYLES_COUNT || !m_aAllStyles.size()) return ""; return m_aAllStyles[(m_nStyleIterator + nPosition) % m_aAllStyles.size()]; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits