svdoashp.cxx (fe3fb480) | svdoashp.cxx (6381da86) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 3423 unchanged lines hidden (view full) --- 3432 sal_uInt16 i; 3433 sal_uInt16 nPntAnz=aPol.GetSize(); 3434 for (i=0; i<nPntAnz; i++) 3435 { 3436 MirrorPoint(aPol[i],aRef1,aRef2); 3437 } 3438 // Polygon wenden und etwas schieben 3439 Polygon aPol0(aPol); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 3423 unchanged lines hidden (view full) --- 3432 sal_uInt16 i; 3433 sal_uInt16 nPntAnz=aPol.GetSize(); 3434 for (i=0; i<nPntAnz; i++) 3435 { 3436 MirrorPoint(aPol[i],aRef1,aRef2); 3437 } 3438 // Polygon wenden und etwas schieben 3439 Polygon aPol0(aPol); |
3440 aPol[0]=aPol0[1]; 3441 aPol[1]=aPol0[0]; 3442 aPol[2]=aPol0[3]; 3443 aPol[3]=aPol0[2]; 3444 aPol[4]=aPol0[1]; | 3440 aPol[0]=aPol0[3]; // This was WRONG for vertical (!) 3441 aPol[1]=aPol0[2]; 3442 aPol[2]=aPol0[1]; 3443 aPol[3]=aPol0[0]; 3444 aPol[4]=aPol0[3]; |
3445 Poly2Rect(aPol,aRectangle,aNewGeo); 3446 } 3447 } 3448 3449 // fill other values 3450 basegfx::B2DTuple aScale(aRectangle.GetWidth(), aRectangle.GetHeight()); 3451 basegfx::B2DTuple aTranslate(aRectangle.Left(), aRectangle.Top()); 3452 --- 92 unchanged lines hidden --- | 3445 Poly2Rect(aPol,aRectangle,aNewGeo); 3446 } 3447 } 3448 3449 // fill other values 3450 basegfx::B2DTuple aScale(aRectangle.GetWidth(), aRectangle.GetHeight()); 3451 basegfx::B2DTuple aTranslate(aRectangle.Left(), aRectangle.Top()); 3452 --- 92 unchanged lines hidden --- |