diff options
author | Armin Le Grand <armin.le.grand@oracle.com> | 2011-12-03 18:30:11 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-12-05 13:00:12 +0100 |
commit | d999ae100029641a3e21fc27d800f040c92b3ad5 (patch) | |
tree | 8451ba56eeaf2476d236065e46edad845fea0e27 /sd | |
parent | 2aa52a0ae0493d6d767c57ef4975da37e9f8da10 (diff) |
aw084: #i112978# use GetAllMarkedBoundRect instead of GetAllMarkedRect to get fat line support
# HG changeset patch
# User Armin Le Grand <armin.le.grand@oracle.com>
# Date 1300116633 -3600
# Node ID 9d821e77ed393c984738cf3e829a8c94a681828f
# Parent 20c5c9384888da33596d864251881e6e46bdd339
aw084: #i112978# use GetAllMarkedBoundRect instead of GetAllMarkedRect to get fat line support
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 4 | ||||
-rw-r--r-- | 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 fb704a02ef75..317c9f252ec8 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -339,7 +339,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 ae61aa6cbfd0..bd3a8d6293a9 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -133,7 +133,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; |