summaryrefslogtreecommitdiffstats
path: root/external/libvisio/vsd-msvc-max.patch.1
diff options
context:
space:
mode:
Diffstat (limited to 'external/libvisio/vsd-msvc-max.patch.1')
-rw-r--r--external/libvisio/vsd-msvc-max.patch.119
1 files changed, 19 insertions, 0 deletions
diff --git a/external/libvisio/vsd-msvc-max.patch.1 b/external/libvisio/vsd-msvc-max.patch.1
new file mode 100644
index 000000000000..7d22ea1999ad
--- /dev/null
+++ b/external/libvisio/vsd-msvc-max.patch.1
@@ -0,0 +1,19 @@
+--- a/src/lib/VSDContentCollector.cpp
++++ b/src/lib/VSDContentCollector.cpp
+@@ -2256,14 +2256,14 @@
+ styleProps.insert("draw:marker-start-viewbox", _linePropertiesMarkerViewbox(style.startMarker));
+ styleProps.insert("draw:marker-start-path", _linePropertiesMarkerPath(style.startMarker));
+ double w = m_scale*_linePropertiesMarkerScale(style.startMarker)*(0.1/(style.width*style.width+1)+2.54*style.width);
+- styleProps.insert("draw:marker-start-width", std::max(w, 0.05));
++ styleProps.insert("draw:marker-start-width", (std::max)(w, 0.05));
+ }
+ if (style.endMarker > 0)
+ {
+ styleProps.insert("draw:marker-end-viewbox", _linePropertiesMarkerViewbox(style.endMarker));
+ styleProps.insert("draw:marker-end-path", _linePropertiesMarkerPath(style.endMarker));
+ double w = m_scale*_linePropertiesMarkerScale(style.endMarker)*(0.1/(style.width*style.width+1)+2.54*style.width);
+- styleProps.insert("draw:marker-end-width", std::max(w, 0.05));
++ styleProps.insert("draw:marker-end-width", (std::max)(w, 0.05));
+ }
+
+ int dots1 = 0;