diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-10-24 12:42:56 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-10-24 12:42:56 +0000 |
commit | 67a58cbe770d21dfd8cc8eb44cb697bad1e3c667 (patch) | |
tree | 37c58f423eec5f3b092570dece82716b38f92517 /svx/source/svdraw/svdfppt.cxx | |
parent | 651ad507a7ab47c4a2368ad156474f020bab15f5 (diff) |
INTEGRATION: CWS impress108 (1.142.10); FILE MERGED
2006/09/27 11:23:10 sj 1.142.10.1: #i69518# fixed clientanchor problem (now also supporting 32bit)
Diffstat (limited to 'svx/source/svdraw/svdfppt.cxx')
-rw-r--r-- | svx/source/svdraw/svdfppt.cxx | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/svx/source/svdraw/svdfppt.cxx b/svx/source/svdraw/svdfppt.cxx index d1c3978d09b4..2566330f484a 100644 --- a/svx/source/svdraw/svdfppt.cxx +++ b/svx/source/svdraw/svdfppt.cxx @@ -4,9 +4,9 @@ * * $RCSfile: svdfppt.cxx,v $ * - * $Revision: 1.145 $ + * $Revision: 1.146 $ * - * last change: $Author: mav $ $Date: 2006-10-16 07:24:36 $ + * last change: $Author: hr $ $Date: 2006-10-24 13:42:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -804,16 +804,24 @@ SdrObject* SdrEscherImport::ReadObjText( PPTTextObj* /*pTextObj*/, SdrObject* pO return pObj; } -void SdrEscherImport::ProcessClientAnchor2( SvStream& rSt, DffRecordHeader& /*rHd*/, void* /*pData*/, DffObjData& rObj ) +void SdrEscherImport::ProcessClientAnchor2( SvStream& rSt, DffRecordHeader& rHd, void* /*pData*/, DffObjData& rObj ) { - INT16 ls, os, rs, us; - rSt >> os >> ls >> rs >> us; // etwas seltsame Koordinatenreihenfolge ... - sal_Int32 l = ls, o = os, r = rs, u = us; + sal_Int32 l, t, r, b; + if ( rHd.nRecLen == 16 ) + { + rSt >> l >> t >> r >> b; + } + else + { + INT16 ls, ts, rs, bs; + rSt >> ts >> ls >> rs >> bs; // etwas seltsame Koordinatenreihenfolge ... + l = ls, t = ts, r = rs, b = bs; + } Scale( l ); - Scale( o ); + Scale( t ); Scale( r ); - Scale( u ); - rObj.aChildAnchor = Rectangle( l, o, r, u ); + Scale( b ); + rObj.aChildAnchor = Rectangle( l, t, r, b ); rObj.bChildAnchor = TRUE; return; }; |