summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2017-12-15 14:42:06 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2017-12-20 04:55:44 +0100
commit0545c1ad981a3dcb8264da3215bc069b03f4d988 (patch)
treebed2e5f01f7d46b63c4e04d882f75a2d159c59ed /canvas
parent021081823aeebcfa395662d0c04535a243977c2e (diff)
Properly skip ignored value
Change-Id: I1ac75cde58a52f87ef6825baa2e689dbc449c8f0 Reviewed-on: https://gerrit.libreoffice.org/46547 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper.cxx2
-rw-r--r--canvas/source/tools/canvastools.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index 06c07665a831..74b612928ffd 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -2097,7 +2097,7 @@ namespace cairocanvas
*pOut++ = vcl::unotools::toDoubleColor(*pIn++);
*pOut++ = vcl::unotools::toDoubleColor(*pIn++);
*pOut++ = vcl::unotools::toDoubleColor(*pIn++);
- *pOut++ = 1.0; // the value does not matter
+ *pOut++ = 1.0; pIn++; // the value does not matter
}
return aRes;
}
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx
index a80f23b3f2f4..d1155243275c 100644
--- a/canvas/source/tools/canvastools.cxx
+++ b/canvas/source/tools/canvastools.cxx
@@ -678,7 +678,7 @@ namespace canvas
*pOut++ = vcl::unotools::toDoubleColor(*pIn++);
*pOut++ = vcl::unotools::toDoubleColor(*pIn++);
*pOut++ = vcl::unotools::toDoubleColor(*pIn++);
- *pOut++ = 1.0;
+ *pOut++ = 1.0; pIn++;
}
return aRes;
}