diff options
author | Sven Jacobi <sj@openoffice.org> | 2009-07-02 12:52:55 +0000 |
---|---|---|
committer | Sven Jacobi <sj@openoffice.org> | 2009-07-02 12:52:55 +0000 |
commit | 437e41aff335e0b6653d3c9ce9644d1cc853ae90 (patch) | |
tree | f750deeb7754147d29839d555a102d6fb8ee5cd3 /svx/source | |
parent | e68b9caf08facdd99054e61f1242c7a5c5929ab9 (diff) |
#i103278# fixed import of lines
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/msfilter/msdffimp.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/svx/source/msfilter/msdffimp.cxx b/svx/source/msfilter/msdffimp.cxx index 5a8c149fa2bf..e6ac5391c081 100644 --- a/svx/source/msfilter/msdffimp.cxx +++ b/svx/source/msfilter/msdffimp.cxx @@ -4955,6 +4955,16 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r ApplyAttributes( rSt, aSet, aObjData ); pRet->SetMergedItemSet(aSet); } + else if ( aObjData.eShapeType == mso_sptLine ) + { + basegfx::B2DPolygon aPoly; + aPoly.append(basegfx::B2DPoint(aObjData.aBoundRect.Left(), aObjData.aBoundRect.Top())); + aPoly.append(basegfx::B2DPoint(aObjData.aBoundRect.Right(), aObjData.aBoundRect.Bottom())); + pRet = new SdrPathObj(OBJ_LINE, basegfx::B2DPolyPolygon(aPoly)); + pRet->SetModel( pSdrModel ); + ApplyAttributes( rSt, aSet, aObjData ); + pRet->SetMergedItemSet(aSet); + } else { if ( GetCustomShapeContent( aObjData.eShapeType ) || IsProperty( DFF_Prop_pVertices ) ) |