[Libreoffice-commits] core.git: cui/source

Caolán McNamara caolanm at redhat.com
Fri Apr 5 04:20:08 PDT 2013


 cui/source/options/dbregister.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 944bc0a3a33f21f59cb51a4391687ff1fe01dae9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 5 12:17:58 2013 +0100

    Resolves: fdo#62478 crash on tools->options->base->databases
    
    Change-Id: Ic24c5f14f66a4059ce653df34321352adb50496f

diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx
index dfa2def..cb93a97 100644
--- a/cui/source/options/dbregister.cxx
+++ b/cui/source/options/dbregister.cxx
@@ -235,7 +235,7 @@ void DbRegistrationOptionsPage::Reset( const SfxItemSet& rSet )
 
         // restore column width
         rBar.SetItemSize( ITEMID_TYPE, aUserData.GetToken(0).ToInt32() );
-        HeaderEndDrag_Impl( NULL );
+        HeaderEndDrag_Impl( &rBar );
         // restore sort direction
         sal_Bool bUp = (sal_Bool)(sal_uInt16)aUserData.GetToken(1).ToInt32();
         HeaderBarItemBits nBits = rBar.GetItemBits(ITEMID_TYPE);
@@ -251,7 +251,7 @@ void DbRegistrationOptionsPage::Reset( const SfxItemSet& rSet )
             nBits |= HIB_UPARROW;
         }
         rBar.SetItemBits( ITEMID_TYPE, nBits );
-        HeaderSelect_Impl( NULL );
+        HeaderSelect_Impl( &rBar );
     }
 }
 
@@ -312,6 +312,8 @@ IMPL_LINK_NOARG(DbRegistrationOptionsPage, EditHdl)
 
 IMPL_LINK( DbRegistrationOptionsPage, HeaderSelect_Impl, HeaderBar*, pBar )
 {
+    assert(pBar);
+
     if ( pBar && pBar->GetCurItemId() != ITEMID_TYPE )
         return 0;
 
@@ -341,6 +343,8 @@ IMPL_LINK( DbRegistrationOptionsPage, HeaderSelect_Impl, HeaderBar*, pBar )
 
 IMPL_LINK( DbRegistrationOptionsPage, HeaderEndDrag_Impl, HeaderBar*, pBar )
 {
+    assert(pBar);
+
     if ( pBar && !pBar->GetCurItemId() )
         return 0;
 


More information about the Libreoffice-commits mailing list