openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1420649 - /openoffice/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx
Date Wed, 12 Dec 2012 12:57:26 GMT
Author: alg
Date: Wed Dec 12 12:57:25 2012
New Revision: 1420649

URL: http://svn.apache.org/viewvc?rev=1420649&view=rev
Log:
Converted to unix lineends

Modified:
    openoffice/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx

Modified: openoffice/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx?rev=1420649&r1=1420648&r2=1420649&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx (original)
+++ openoffice/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx Wed Dec 12 12:57:25
2012
@@ -1495,36 +1495,36 @@ void EnhancedCustomShape2d::CreateSubPat
 				}
 				break;
 
-                case QUADRATICCURVETO :
-                {
-                    for ( sal_uInt16 i = 0; ( i < nPntCount ) && ( ( rSrcPt +
1 ) < nCoordSize ); i++ )
-                    {
-                        if ( rSrcPt )
-                        {
-                            const Point aPreviousEndPoint(GetPoint( seqCoordinates[ rSrcPt
- 1 ], sal_True, sal_True));
-                            const Point aControlQ(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True,
sal_True ));
-                            const Point aEnd(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True,
sal_True ));
-                            const Point aControlA((aPreviousEndPoint + (aControlQ * 2)) /
3);
-                            const Point aControlB(((aControlQ * 2) + aEnd) / 3);
-
-                            DBG_ASSERT(aNewB2DPolygon.count(), "EnhancedCustomShape2d::CreateSubPath:
Error in adding Q control point (!)");
-                            aNewB2DPolygon.appendBezierSegment(
-                                basegfx::B2DPoint(aControlA.X(), aControlA.Y()),
-                                basegfx::B2DPoint(aControlB.X(), aControlB.Y()),
-                                basegfx::B2DPoint(aEnd.X(), aEnd.Y()));
-                        }
-                        else // no previous point , do a moveto
-                        {
-                            rSrcPt++; // skip control point
-                            const Point aEnd(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True,
sal_True ));
-
-                            DBG_ASSERT(aNewB2DPolygon.count(), "EnhancedCustomShape2d::CreateSubPath:
Error in adding Q control point (!)");
-                            aNewB2DPolygon.append(basegfx::B2DPoint(aEnd.X(), aEnd.Y()));
-                        }
-                    }
-                }
-                break;
-
+                case QUADRATICCURVETO :
+                {
+                    for ( sal_uInt16 i = 0; ( i < nPntCount ) && ( ( rSrcPt +
1 ) < nCoordSize ); i++ )
+                    {
+                        if ( rSrcPt )
+                        {
+                            const Point aPreviousEndPoint(GetPoint( seqCoordinates[ rSrcPt
- 1 ], sal_True, sal_True));
+                            const Point aControlQ(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True,
sal_True ));
+                            const Point aEnd(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True,
sal_True ));
+                            const Point aControlA((aPreviousEndPoint + (aControlQ * 2)) /
3);
+                            const Point aControlB(((aControlQ * 2) + aEnd) / 3);
+
+                            DBG_ASSERT(aNewB2DPolygon.count(), "EnhancedCustomShape2d::CreateSubPath:
Error in adding Q control point (!)");
+                            aNewB2DPolygon.appendBezierSegment(
+                                basegfx::B2DPoint(aControlA.X(), aControlA.Y()),
+                                basegfx::B2DPoint(aControlB.X(), aControlB.Y()),
+                                basegfx::B2DPoint(aEnd.X(), aEnd.Y()));
+                        }
+                        else // no previous point , do a moveto
+                        {
+                            rSrcPt++; // skip control point
+                            const Point aEnd(GetPoint( seqCoordinates[ rSrcPt++ ], sal_True,
sal_True ));
+
+                            DBG_ASSERT(aNewB2DPolygon.count(), "EnhancedCustomShape2d::CreateSubPath:
Error in adding Q control point (!)");
+                            aNewB2DPolygon.append(basegfx::B2DPoint(aEnd.X(), aEnd.Y()));
+                        }
+                    }
+                }
+                break;
+
 				case ANGLEELLIPSE :
 				{
 					if ( nPntCount )



Mime
View raw message