summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-18 11:25:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-19 09:40:10 +0200
commit7864ab4ec3a164f299a71dcf6298213e4e4d46f6 (patch)
treea8ffa6268b952e1c0e45f1ddf239b6a86567aa63 /canvas
parent00ece34fb7916b18053273e54fbe746170570d34 (diff)
cid#1448246 Result is not floating-point
Change-Id: I96fb06ffec6f8196dfa01ff13d45c1f618e671fc Reviewed-on: https://gerrit.libreoffice.org/75905 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/workben/canvasdemo.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx
index 23df7d4c437c..788d76e3dfcf 100644
--- a/canvas/workben/canvasdemo.cxx
+++ b/canvas/workben/canvasdemo.cxx
@@ -131,7 +131,7 @@ class DemoRenderer
void drawGrid()
{
- double d, dIncr = maSize.Width() / 3;
+ long d, dIncr = maSize.Width() / 3;
for ( d = 0; d <= maSize.Width(); d += dIncr )
mxCanvas->drawLine( geometry::RealPoint2D( d, 0 ),
geometry::RealPoint2D( d, maSize.Height() ),