sw/source/core/access/accmap.cxx |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

New commits:
commit f141505929c95c97ae4765d7c7221f07e41ef8e7
Author: Caolán McNamara <caol...@redhat.com>
Date:   Wed Dec 4 13:10:16 2013 +0000

    Relater: rhbz#903281 NULL follow frames on drag/drop
    
    Change-Id: I50319fb218518edd23ff8c859c355265595050d6

diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index a79b2d6..ce9d912 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -815,12 +815,18 @@ static bool AreInSameTable( const uno::Reference< 
XAccessible >& rAcc,
         if( pAccImpl->GetFrm()->IsCellFrm() )
         {
             const SwTabFrm *pTabFrm1 = pAccImpl->GetFrm()->FindTabFrm();
-            while( pTabFrm1->GetFollow() )
-                   pTabFrm1 = pTabFrm1->GetFollow();
+            if (pTabFrm1)
+            {
+                while (pTabFrm1->GetFollow())
+                    pTabFrm1 = pTabFrm1->GetFollow();
+            }
 
             const SwTabFrm *pTabFrm2 = pFrm->FindTabFrm();
-            while( pTabFrm2->GetFollow() )
-                   pTabFrm2 = pTabFrm2->GetFollow();
+            if (pTabFrm2)
+            {
+                while (pTabFrm2->GetFollow())
+                    pTabFrm2 = pTabFrm2->GetFollow();
+            }
 
             bRet = (pTabFrm1 == pTabFrm2);
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to