Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp
index 9de0d30..a3cd0f1 100644
--- a/src/lib/VSDContentCollector.cpp
+++ b/src/lib/VSDContentCollector.cpp
@@ -2277,13 +2277,15 @@ void libvisio::VSDContentCollector::_lineProperties(const VSDLineStyle &style, l
styleProps.insert("draw:marker-start-viewbox", _linePropertiesMarkerViewbox(style.startMarker)); styleProps.insert("draw:marker-start-path", _linePropertiesMarkerPath(style.startMarker)); - styleProps.insert("draw:marker-start-width", m_scale*_linePropertiesMarkerScale(style.startMarker)*(0.1/(style.width*style.width+1)+2.54*style.width)); + 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));
   if (style.endMarker > 0)
styleProps.insert("draw:marker-end-viewbox", _linePropertiesMarkerViewbox(style.endMarker)); styleProps.insert("draw:marker-end-path", _linePropertiesMarkerPath(style.endMarker)); - styleProps.insert("draw:marker-end-width", m_scale*_linePropertiesMarkerScale(style.endMarker)*(0.1/(style.width*style.width+1)+2.54*style.width)); + 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));

   int dots1 = 0;

On 2014年11月07日 18:44, TANAKA Hidemune wrote:
茂 木さん、


On 2014年11月07日 17:24, Isamu Mogi wrote:
ここは std::maxがオススメです。
styleProps.insert("draw:marker-end-width", std::max(w, 0.05));


 株式会社 田中コンピューターサービス

    代表取締役 田中 秀宗
          TANAKA Hidemune

 本 社 東京都北区滝野川7丁目45番14号
 電 話 03-3576-7272
 FAX 03-3576-7272
 携 帯 090-6187-1418


Unsubscribe instructions: E-mail to
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.