diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/StylesPreviewWindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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()]; |