[Libreoffice-commits] core.git: canvas/source
Armin Le Grand
Armin.Le.Grand at cib.de
Wed Apr 13 11:51:14 UTC 2016
canvas/source/cairo/cairo_canvashelper.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ebe94af4eca68360c99f3421f1298f94747de003
Author: Armin Le Grand <Armin.Le.Grand at cib.de>
Date: Wed Apr 13 13:48:05 2016 +0200
tdf#99165 initialize nLastX, nLastY
... even when inited in 1st loop run to avoid warning 'maybe-uninitialized'
Change-Id: I67607767b8091d220efcf4c4ca70f570f955e297
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index bd86c89..f163aa0 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 );
More information about the Libreoffice-commits
mailing list