summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/paintfrm.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-07 10:42:16 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-07 10:50:45 +0200
commit2f375ff51cba6d7f70a433bb254f34c8bb5a6bec (patch)
tree48574c5e13bd6c9e485082cc1ec5f8b8a664bef3 /sw/source/core/layout/paintfrm.cxx
parentc7a557cc4ff3c8e32ffe414f6b6fd7b62e7bf077 (diff)
Fixed build error about double conversion
Diffstat (limited to 'sw/source/core/layout/paintfrm.cxx')
-rwxr-xr-xsw/source/core/layout/paintfrm.cxx8
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() );