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


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 <brunogirin@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


Context


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.