summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2016-04-13 13:48:05 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2016-04-13 13:48:05 +0200
commitebe94af4eca68360c99f3421f1298f94747de003 (patch)
treee0bbe27251f11d6869e0fce24b9be905dcf1f032 /canvas
parent0de868cd0f430efc6256926c2865530818d7b7dd (diff)
tdf#99165 initialize nLastX, nLastY
... even when inited in 1st loop run to avoid warning 'maybe-uninitialized' Change-Id: I67607767b8091d220efcf4c4ca70f570f955e297
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index bd86c8977152..f163aa06dda2 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -951,7 +951,7 @@ namespace cairocanvas
bool bOpToDo = false;
cairo_matrix_t aOrigMatrix, aIdentityMatrix;
- double nX, nY, nBX, nBY, nAX, nAY, nLastX, nLastY;
+ double nX, nY, nBX, nBY, nAX, nAY, nLastX(0.0), nLastY(0.0);
cairo_get_matrix( pCairo, &aOrigMatrix );
cairo_matrix_init_identity( &aIdentityMatrix );