diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-07 10:42:16 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-07 10:50:45 +0200 |
commit | 2f375ff51cba6d7f70a433bb254f34c8bb5a6bec (patch) | |
tree | 48574c5e13bd6c9e485082cc1ec5f8b8a664bef3 /sw/source/core/layout/paintfrm.cxx | |
parent | c7a557cc4ff3c8e32ffe414f6b6fd7b62e7bf077 (diff) |
Fixed build error about double conversion
Diffstat (limited to 'sw/source/core/layout/paintfrm.cxx')
-rwxr-xr-x | sw/source/core/layout/paintfrm.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 5f18cf9ba41f..e3146afbb7ff 100755 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -6251,14 +6251,14 @@ drawinglayer::primitive2d::Primitive2DSequence lcl_CreatePageAreaDelimiterPrimit double nLineLength = 200.0; // in Twips Point aPoints[] = { rRect.TopLeft(), rRect.TopRight(), rRect.BottomRight(), rRect.BottomLeft() }; - int aXOffDirs[] = { -1, 1, 1, -1 }; - int aYOffDirs[] = { -1, -1, 1, 1 }; + double aXOffDirs[] = { -1.0, 1.0, 1.0, -1.0 }; + double aYOffDirs[] = { -1.0, -1.0, 1.0, 1.0 }; // Actually loop over the corners to create the two lines for ( int i = 0; i < 4; i++ ) { - basegfx::B2DVector aHorizVector( double( aXOffDirs[i] ), 0.0 ); - basegfx::B2DVector aVertVector( 0.0, double( aYOffDirs[i] ) ); + basegfx::B2DVector aHorizVector( aXOffDirs[i], 0.0 ); + basegfx::B2DVector aVertVector( 0.0, aYOffDirs[i] ); basegfx::B2DPoint aBPoint( aPoints[i].X(), aPoints[i].Y() ); |