diff options
author | Armin Le Grand <armin.le.grand@oracle.com> | 2011-03-14 16:30:33 +0100 |
---|---|---|
committer | Armin Le Grand <armin.le.grand@oracle.com> | 2011-03-14 16:30:33 +0100 |
commit | 7c6b46e99effba301d0e4e74ddd7638824797e28 (patch) | |
tree | 6ef22f4708ab995dea7e99567ccc839be99c5694 /sd | |
parent | 2785e67bbcd479f864ea941bfd9a47916fd04aa4 (diff) |
aw084: #i112978# use GetAllMarkedBoundRect instead of GetAllMarkedRect to get fat line support
Diffstat (limited to 'sd')
-rwxr-xr-x | sd/source/ui/app/sdxfer.cxx | 4 | ||||
-rwxr-xr-x | sd/source/ui/view/sdview2.cxx | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index 48a1f35436e9..cf59df42c85b 100755 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -345,7 +345,9 @@ void SdTransferable::CreateData() if( 1 == mpSdDrawDocumentIntern->GetPageCount() ) { - Point aOrigin( ( maVisArea = mpSdViewIntern->GetAllMarkedRect() ).TopLeft() ); + // #112978# need to use GetAllMarkedBoundRect instead of GetAllMarkedRect to get + // fat lines correctly + Point aOrigin( ( maVisArea = mpSdViewIntern->GetAllMarkedBoundRect() ).TopLeft() ); Size aVector( -aOrigin.X(), -aOrigin.Y() ); for( sal_uLong nObj = 0, nObjCount = pPage->GetObjCount(); nObj < nObjCount; nObj++ ) diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index 73f48323312f..0236af7d5fcf 100755 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -136,7 +136,9 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent pTransferable->SetWorkDocument( (SdDrawDocument*) GetAllMarkedModel() ); mpDoc->CreatingDataObj( NULL ); - const Rectangle aMarkRect( GetAllMarkedRect() ); + // #112978# need to use GetAllMarkedBoundRect instead of GetAllMarkedRect to get + // fat lines correctly + const Rectangle aMarkRect( GetAllMarkedBoundRect() ); TransferableObjectDescriptor aObjDesc; String aDisplayName; SdrOle2Obj* pSdrOleObj = NULL; |