summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/table/gridtablerenderer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx
index 08de04b177e9..8a68ccdbba2a 100644
--- a/svtools/source/table/gridtablerenderer.cxx
+++ b/svtools/source/table/gridtablerenderer.cxx
@@ -78,7 +78,7 @@ namespace svt::table
StyleSettings const & i_style, bool const i_sortAscending )
{
BitmapEx& rBitmap(i_sortAscending ? m_sortAscending : m_sortDescending);
- if (!rBitmap || (i_headerHeight != m_lastHeaderHeight) || (i_style.GetActiveColor() != m_lastArrowColor))
+ if (rBitmap.IsEmpty() || (i_headerHeight != m_lastHeaderHeight) || (i_style.GetActiveColor() != m_lastArrowColor))
{
tools::Long const nSortIndicatorWidth = 2 * i_headerHeight / 3;
tools::Long const nSortIndicatorHeight = 2 * nSortIndicatorWidth / 3;