fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / libvisio / vsd-msvc-max.patch.1
blob7d22ea1999ad9f259c86c13f21d66b5f734c1d1a
1 --- a/src/lib/VSDContentCollector.cpp
2 +++ b/src/lib/VSDContentCollector.cpp
3 @@ -2256,14 +2256,14 @@
4      styleProps.insert("draw:marker-start-viewbox", _linePropertiesMarkerViewbox(style.startMarker));
5      styleProps.insert("draw:marker-start-path", _linePropertiesMarkerPath(style.startMarker));
6      double w =  m_scale*_linePropertiesMarkerScale(style.startMarker)*(0.1/(style.width*style.width+1)+2.54*style.width);
7 -    styleProps.insert("draw:marker-start-width", std::max(w, 0.05));
8 +    styleProps.insert("draw:marker-start-width", (std::max)(w, 0.05));
9    }
10    if (style.endMarker > 0)
11    {
12      styleProps.insert("draw:marker-end-viewbox", _linePropertiesMarkerViewbox(style.endMarker));
13      styleProps.insert("draw:marker-end-path", _linePropertiesMarkerPath(style.endMarker));
14      double w =  m_scale*_linePropertiesMarkerScale(style.endMarker)*(0.1/(style.width*style.width+1)+2.54*style.width);
15 -    styleProps.insert("draw:marker-end-width", std::max(w, 0.05));
16 +    styleProps.insert("draw:marker-end-width", (std::max)(w, 0.05));
17    }
19    int dots1 = 0;