[Libreoffice-commits] libmspub.git: src/lib
David Tardon
dtardon at redhat.com
Sat Apr 8 11:46:38 UTC 2017
src/lib/MSPUBCollector.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3f26e96cad0ee4aac1e3d56d0b1e39b9c233c0c6
Author: David Tardon <dtardon at redhat.com>
Date: Wed Apr 5 18:08:58 2017 +0200
ofz#1003: try to fix use of temp. var. after its stack scope
I think this is a bug in either ASAN/clang or in boost, but it is no big
deal to copy the coord instead of taking a ref, so let's try if this
helps to workaround the problem...
Change-Id: If5c1ed4aa4ed3c7d745cb501839f1d0ec0f3990c
diff --git a/src/lib/MSPUBCollector.cpp b/src/lib/MSPUBCollector.cpp
index 76905dc..90b6725 100644
--- a/src/lib/MSPUBCollector.cpp
+++ b/src/lib/MSPUBCollector.cpp
@@ -639,7 +639,7 @@ boost::function<void(void)> MSPUBCollector::paintShape(const ShapeInfo &info, co
m_painter->startLayer(librevenge::RVNGPropertyList());
}
graphicsProps.insert("draw:stroke", "none");
- const Coordinate &coord = info.m_coordinates.get_value_or(Coordinate());
+ const Coordinate coord = info.m_coordinates.get_value_or(Coordinate());
BorderPosition borderPosition =
hasBorderArt ? INSIDE_SHAPE : info.m_borderPosition.get_value_or(HALF_INSIDE_SHAPE);
ShapeType type;
More information about the Libreoffice-commits
mailing list