[PATCH] Fix for ticket 44576

Bruno Girin brunogirin at gmail.com
Sat Jan 28 06:52:03 PST 2012


---
 src/lib/VSDXContentCollector.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/VSDXContentCollector.cpp b/src/lib/VSDXContentCollector.cpp
index fa1d5cf..2a4b36f 100644
--- a/src/lib/VSDXContentCollector.cpp
+++ b/src/lib/VSDXContentCollector.cpp
@@ -453,13 +453,13 @@ void libvisio::VSDXContentCollector::_lineProperties(double strokeWidth, Colour
   {
     m_styleProps.insert("draw:marker-start-viewbox", "0 0 20 30");
     m_styleProps.insert("draw:marker-start-path", "m10 0-10 30h20z");
-    m_styleProps.insert("draw:marker-start-width", m_scale*0.118);
+    m_styleProps.insert("draw:marker-start-width", m_scale*(0.1/(strokeWidth*strokeWidth+1)+2.54*strokeWidth));
   }
   if (endMarker > 0)
   {
     m_styleProps.insert("draw:marker-end-viewbox", "0 0 20 30");
     m_styleProps.insert("draw:marker-end-path", "m10 0-10 30h20z");
-    m_styleProps.insert("draw:marker-end-width", m_scale*0.118);
+    m_styleProps.insert("draw:marker-end-width", m_scale*(0.1/(strokeWidth*strokeWidth+1)+2.54*strokeWidth));
   }
 }
 
-- 
1.7.5.4


--------------060702060206030007010702--


More information about the LibreOffice mailing list