Kaydet (Commit) 2f375ff5 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

Fixed build error about double conversion

üst c7a557cc
...@@ -6251,14 +6251,14 @@ drawinglayer::primitive2d::Primitive2DSequence lcl_CreatePageAreaDelimiterPrimit ...@@ -6251,14 +6251,14 @@ drawinglayer::primitive2d::Primitive2DSequence lcl_CreatePageAreaDelimiterPrimit
double nLineLength = 200.0; // in Twips double nLineLength = 200.0; // in Twips
Point aPoints[] = { rRect.TopLeft(), rRect.TopRight(), rRect.BottomRight(), rRect.BottomLeft() }; Point aPoints[] = { rRect.TopLeft(), rRect.TopRight(), rRect.BottomRight(), rRect.BottomLeft() };
int aXOffDirs[] = { -1, 1, 1, -1 }; double aXOffDirs[] = { -1.0, 1.0, 1.0, -1.0 };
int aYOffDirs[] = { -1, -1, 1, 1 }; double aYOffDirs[] = { -1.0, -1.0, 1.0, 1.0 };
// Actually loop over the corners to create the two lines // Actually loop over the corners to create the two lines
for ( int i = 0; i < 4; i++ ) for ( int i = 0; i < 4; i++ )
{ {
basegfx::B2DVector aHorizVector( double( aXOffDirs[i] ), 0.0 ); basegfx::B2DVector aHorizVector( aXOffDirs[i], 0.0 );
basegfx::B2DVector aVertVector( 0.0, double( aYOffDirs[i] ) ); basegfx::B2DVector aVertVector( 0.0, aYOffDirs[i] );
basegfx::B2DPoint aBPoint( aPoints[i].X(), aPoints[i].Y() ); basegfx::B2DPoint aBPoint( aPoints[i].X(), aPoints[i].Y() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment