[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - external/libvisio

Caolán McNamara caolanm at redhat.com
Mon Jan 5 04:40:26 PST 2015


 external/libvisio/UnpackedTarball_libvisio.mk |    4 ++++
 external/libvisio/vsd-msvc-max.patch.1        |   19 +++++++++++++++++++
 2 files changed, 23 insertions(+)

New commits:
commit cf171c203d0cb46db946bdcd81cd84f027a7e917
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 2 19:07:35 2015 +0000

    workaround error C2589: ´(´ : illegal token on right side of ´::´
    
    Change-Id: I3654a4eb4caa3a987f6d797c9bcb577c6fd6b426
    (cherry picked from commit 1fc30a25e2c69fe8b365300b0784f3a282183e80)

diff --git a/external/libvisio/UnpackedTarball_libvisio.mk b/external/libvisio/UnpackedTarball_libvisio.mk
index e4c0561..3190833 100644
--- a/external/libvisio/UnpackedTarball_libvisio.mk
+++ b/external/libvisio/UnpackedTarball_libvisio.mk
@@ -11,4 +11,8 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,libvisio))
 
 $(eval $(call gb_UnpackedTarball_set_tarball,libvisio,$(VISIO_TARBALL)))
 
+$(eval $(call gb_UnpackedTarball_add_patches,libvisio,\
+       external/libvisio/vsd-msvc-max.patch.1 \
+))
+
 # vim: set noet sw=4 ts=4:
diff --git a/external/libvisio/vsd-msvc-max.patch.1 b/external/libvisio/vsd-msvc-max.patch.1
new file mode 100644
index 0000000..7d22ea1
--- /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;


More information about the Libreoffice-commits mailing list