summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-12 13:43:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-12 13:48:22 +0100
commit79395c934771818686e488a7c2e382a00456c8a1 (patch)
treec85edd9636d7216eb15e355724e560902a44572e
parent197c4320aeb6f29e7de15dfc1b8d8ad5ce89b0b3 (diff)
Resolves: tdf#93113 crash on revisiting insert special character
this effectively reverts commit c43ee00e5d2edfebfa148b310813335aab27db34 Author: Herbert Duerr <hdu@openoffice.org> Date: Wed Aug 15 13:20:51 2001 +0000 #91025# reduce flicker in charmap dialog in favour of the new double buffering Paint is calling RecalculateFont which calls SelectIndex which calls Update which calls Paint, boom Change-Id: I69e9f53b7db09837ff08a2ce9fc6f81a52b5c794
-rw-r--r--svx/source/dialog/charmap.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 1786b7156579..7b47b53c3f04 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -602,7 +602,6 @@ void SvxShowCharSet::SelectIndex( int nNewIndex, bool bFocus )
aVscrollSB->SetThumbPos( nNewPos );
nSelectedIndex = bFocus ? nMapIndex+1 : -1;
Invalidate();
- Update();
}
else if( nNewIndex < FirstInView() )
{
@@ -612,8 +611,6 @@ void SvxShowCharSet::SelectIndex( int nNewIndex, bool bFocus )
aVscrollSB->SetThumbPos( nOldPos - nDelta );
nSelectedIndex = nNewIndex;
Invalidate();
- if( nDelta )
- Update();
}
else if( nNewIndex > LastInView() )
{
@@ -626,10 +623,9 @@ void SvxShowCharSet::SelectIndex( int nNewIndex, bool bFocus )
nSelectedIndex = nNewIndex;
Invalidate();
}
- if( nOldPos != aVscrollSB->GetThumbPos() )
+ else if (nOldPos != aVscrollSB->GetThumbPos())
{
Invalidate();
- Update();
}
}
else