From 1940d8b85b6cb7321ded254e092cd55bee7007aa Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 22 May 2015 13:35:39 +0100 Subject: tdf#91395 - avoid post-dispose charmap crasher. Change-Id: Ia3536e0297ecd24f6368b9563002a9888904007a --- svx/source/dialog/charmap.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3