summaryrefslogtreecommitdiff
path: root/svx/source/dialog/charmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/charmap.cxx')
-rw-r--r--svx/source/dialog/charmap.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 7dd37c43e106..4c17ce11c98a 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -627,6 +627,18 @@ void SvxShowCharSet::DrawChars_Impl(vcl::RenderContext& rRenderContext, int n1,
}
rRenderContext.SetTextColor(aTextCol);
}
+
+ // tdf#141319 - mark empty/unused cells
+ if (n2 - n1 < ROW_COUNT * COLUMN_COUNT)
+ {
+ rRenderContext.SetFillColor(rStyleSettings.GetDisableColor());
+ for (i = n2 - n1 + 1; i < ROW_COUNT * COLUMN_COUNT; i++)
+ {
+ Point pix = MapIndexToPixel(i + n1);
+ rRenderContext.DrawRect(
+ tools::Rectangle(Point(pix.X(), pix.Y()), Size(nX + 2, nY + 2)));
+ }
+ }
}