summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2017-12-30 21:07:59 +0100
committerDavid Tardon <dtardon@redhat.com>2017-12-30 21:07:59 +0100
commit7f990c439d981dc280faac3db4c9f5805250bc2d (patch)
tree9dc6b806c4dfe1f3b51185088322293018b05383
parentf7833801bf3945262e26b110af50910ff0c1748d (diff)
cid#1427014 pointer to local outside scopelibmspub-0.1.3
Change-Id: Ifaa3eae63b2b2bebbd5337090426253bce26d600
-rw-r--r--src/lib/ShapeGroupElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ShapeGroupElement.cpp b/src/lib/ShapeGroupElement.cpp
index 6dcead8..098b958 100644
--- a/src/lib/ShapeGroupElement.cpp
+++ b/src/lib/ShapeGroupElement.cpp
@@ -52,7 +52,7 @@ void ShapeGroupElement::visit(std::function<
(const ShapeInfo &info, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform, bool isGroup, const VectorTransformation2D &thisTransform)
> visitor, const Coordinate &relativeTo, const VectorTransformation2D &parentFoldedTransform) const
{
- const ShapeInfo &info = m_shapeInfo.get_value_or(ShapeInfo());
+ const ShapeInfo info = m_shapeInfo.get_value_or(ShapeInfo());
Coordinate coord = info.m_coordinates.get_value_or(Coordinate());
double centerX = ((double)coord.m_xs + (double)coord.m_xe) / (2 * EMUS_IN_INCH);
double centerY = ((double)coord.m_ys + (double)coord.m_ye) / (2 * EMUS_IN_INCH);