diff options
author | Christian Lippka <cl@openoffice.org> | 2009-12-28 15:03:56 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2009-12-28 15:03:56 +0000 |
commit | 2f682e242f80fbe4b9c753bf4b92e9d2e288cdb6 (patch) | |
tree | ad64f2e64c2d41e78880bfee67a2f463ded9bdbc /svx/source/table/svdotable.cxx | |
parent | 64d9903a647efe5cb689fc6ff84175a911b69cfd (diff) |
#i107966# check if there really is a handle to avoid a reported crash
Diffstat (limited to 'svx/source/table/svdotable.cxx')
-rw-r--r-- | svx/source/table/svdotable.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index 00d09251cd..c318392ab3 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -2575,7 +2575,7 @@ basegfx::B2DPolyPolygon SdrTableObj::getSpecialDragPoly(const SdrDragStat& rDrag basegfx::B2DPolyPolygon aRetval; const SdrHdl* pHdl = rDrag.GetHdl(); - if(HDL_USER == pHdl->GetKind()) + if( pHdl && (HDL_USER == pHdl->GetKind()) ) { const TableEdgeHdl* pEdgeHdl = dynamic_cast< const TableEdgeHdl* >( pHdl ); @@ -2594,7 +2594,7 @@ basegfx::B2DPolyPolygon SdrTableObj::getSpecialDragPoly(const SdrDragStat& rDrag FASTBOOL SdrTableObj::BegCreate(SdrDragStat& rStat) { - rStat.SetOrtho4Possible(); + rStat.SetOrtho4Possible();5 Rectangle aRect1(rStat.GetStart(), rStat.GetNow()); aRect1.Justify(); rStat.SetActionRect(aRect1); |