Hi all,

It appears that in libvisio, if a line has a start arrow, the end arrow gets ignored. You'll find attached a simple patch that fixes this.

Cheers,

Bruno

>From f794fdd967d2eb9a9cd5d4d0fb16a1d19f65f168 Mon Sep 17 00:00:00 2001
From: Bruno Girin <brunogi...@gmail.com>
Date: Sun, 15 Jan 2012 16:25:12 +0000
Subject: [PATCH] Check endMarker even if startMarker is set

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

diff --git a/src/lib/VSDXContentCollector.cpp b/src/lib/VSDXContentCollector.cpp
index 2851d3f..db9a02a 100644
--- a/src/lib/VSDXContentCollector.cpp
+++ b/src/lib/VSDXContentCollector.cpp
@@ -455,7 +455,7 @@ void libvisio::VSDXContentCollector::_lineProperties(double strokeWidth, Colour
     m_styleProps.insert("draw:marker-start-path", "m10 0-10 30h20z");
     m_styleProps.insert("draw:marker-start-width", m_scale*0.118);
   }
-  else if (endMarker > 0)
+  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");
-- 
1.7.5.4

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to