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 | 11ab80fbb1eb0e4849a567ba06af57f789779aff (patch) | |
tree | f4e19d689b54bd21ab33cc93e50f11767a21c0ed /svx/source | |
parent | b0c799c7fbaa93f707bf18a87eb9aef5d86be52c (diff) |
#i107966# check if there really is a handle to avoid a reported crash
Diffstat (limited to 'svx/source')
-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 97e06fd4bb61..b048ed3c8cf1 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); |