[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - svx/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 3 11:24:04 UTC 2020


 svx/source/tbxctrls/StylesPreviewWindow.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 170fbb1ffc2b47dd6ade7c719685c91c19c9bdf5
Author:     Szymon Kłos <eszkadev at gmail.com>
AuthorDate: Wed Jun 3 13:22:54 2020 +0200
Commit:     Szymon Kłos <eszkadev at 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()];


More information about the Libreoffice-commits mailing list