[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - svx/source

Caolán McNamara caolanm at redhat.com
Wed Aug 12 07:14:36 PDT 2015


 svx/source/dialog/charmap.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit a062344931002d88de529d834707444864acfeee
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Aug 12 13:43:27 2015 +0100

    Resolves: tdf#93113 crash on revisiting insert special character
    
    this effectively reverts
    
    commit c43ee00e5d2edfebfa148b310813335aab27db34
    Author: Herbert Duerr <hdu at 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
    (cherry picked from commit 79395c934771818686e488a7c2e382a00456c8a1)
    Reviewed-on: https://gerrit.libreoffice.org/17674
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Tested-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index df7d68e..6a52644 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


More information about the Libreoffice-commits mailing list