svtools/source/contnr/svtabbx.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d2cf81e689082893afa4a54f0387ee6582ea6475
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Mon Jun 29 12:27:01 2015 +0200

    -fsanitize=vptr: avoid premature downcast
    
    Change-Id: I6e355e9283987c1a900b28c5271142aebb55e3b1

diff --git a/svtools/source/contnr/svtabbx.cxx 
b/svtools/source/contnr/svtabbx.cxx
index a6385ad..562cf20 100644
--- a/svtools/source/contnr/svtabbx.cxx
+++ b/svtools/source/contnr/svtabbx.cxx
@@ -655,11 +655,11 @@ bool SvHeaderTabListBox::IsCellCheckBox( long _nRow, 
sal_uInt16 _nColumn, TriSta
         sal_uInt16 nItemCount = pEntry->ItemCount();
         if ( nItemCount > ( _nColumn + 1 ) )
         {
-            SvLBoxButton* pItem = static_cast<SvLBoxButton*>( pEntry->GetItem( 
_nColumn + 1 ) );
+            SvLBoxItem* pItem = pEntry->GetItem( _nColumn + 1 );
             if (pItem && pItem->GetType() == SV_ITEM_ID_LBOXBUTTON)
             {
                 bRet = true;
-                _rState = ( ( pItem->GetButtonFlags() & 
SvItemStateFlags::UNCHECKED ) == SvItemStateFlags::NONE )
+                _rState = ( ( 
static_cast<SvLBoxButton*>(pItem)->GetButtonFlags() & 
SvItemStateFlags::UNCHECKED ) == SvItemStateFlags::NONE )
                             ? TRISTATE_TRUE : TRISTATE_FALSE;
             }
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to