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

Markus Mohrhard markus.mohrhard at googlemail.com
Fri May 22 04:19:15 PDT 2015


 vcl/source/window/toolbox.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 929a8f04af36b10825c80b5fffbf11c4e6f3dc01
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri May 22 00:00:49 2015 +0200

    fix crash related to VclPtr work
    
    Change-Id: I273658a6edd9787c19cfaac0e1cb4a2c33611b99

diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 2209432..452661b 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -4055,7 +4055,7 @@ void ToolBox::Tracking( const TrackingEvent& rTEvt )
 
 void ToolBox::InvalidateItem(sal_uInt16 nPosition)
 {
-    if (nPosition < mpData->m_aItems.size())
+    if (mpData && nPosition < mpData->m_aItems.size())
     {
         ImplToolItem* pItem = &mpData->m_aItems[nPosition];
         Invalidate(pItem->maRect);


More information about the Libreoffice-commits mailing list