summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-22 13:35:39 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-22 13:36:52 +0100
commit1940d8b85b6cb7321ded254e092cd55bee7007aa (patch)
tree0a8a4e15e866d3f01b3060e76bc14aadabc0e704
parent89f7a5670ae0b21c8a80f73d27b5bc1181021373 (diff)
tdf#91395 - avoid post-dispose charmap crasher.
Change-Id: Ia3536e0297ecd24f6368b9563002a9888904007a
-rw-r--r--svx/source/dialog/charmap.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index c57a4e3b8011..104161dfd84d 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -569,6 +569,9 @@ void SvxShowCharSet::RecalculateFont(vcl::RenderContext& rRenderContext)
void SvxShowCharSet::SelectIndex( int nNewIndex, bool bFocus )
{
+ if( !aVscrollSB )
+ return;
+
if( nNewIndex < 0 )
{
// need to scroll see closest unicode