添付ファイル使えないんでしたでしょうか。
メールに貼り付けて再送します。
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:
茂 木さん、
ありがとうございます。
修正済みのDiffファイルを再送します。
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
E-Mail [email protected]
http://tanaka-cs.co.jp
■□■□■□■□■□■□■□■□■□■□■□■
--
Unsubscribe instructions: E-mail to [email protected]
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/ja/discuss/
All messages sent to this list will be publicly archived and cannot be deleted