[dia] svg: avoid duplicated IDs in examples, if ...



commit 4634f660064eb09aad6842ff12b58ccf74c30554
Author: Hans Breuer <hans breuer org>
Date:   Sun Jan 19 12:17:54 2014 +0100

    svg: avoid duplicated IDs in examples, if ...
    
    not intentional for testing. Result is less errors from SVG
    validation at http://validator.w3.org/

 samples/gradient-variations.svg |    2 +-
 samples/path-variations.svg     |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/samples/gradient-variations.svg b/samples/gradient-variations.svg
index cde3094..efc6e32 100644
--- a/samples/gradient-variations.svg
+++ b/samples/gradient-variations.svg
@@ -96,7 +96,7 @@
   <path id="b6" d="M210,260 l40,0 c0,40 -40,40 -40,0z" fill="url(#RG4)"/>
   <path id="b7" d="M210,310 l40,0 c0,40 -40,40 -40,0z" fill="url(#RG5)"/>
   <path id="b8" d="M210,360 l40,0 c0,40 -40,40 -40,0z" fill="url(#LG3)"/>
-  <path id="b7" d="M210,410 l40,0 c0,40 -40,40 -40,0z" fill="url(#LG4)"/>
+  <path id="b9" d="M210,410 l40,0 c0,40 -40,40 -40,0z" fill="url(#LG4)"/>
 
   <!-- Standard - Path -->
   <path id="p1" d="M275,10 c20,0 20,40 0,40 c-20,0 -20,-40 0,-40m0,15 c5,0 5,10 0,10 c-5,0 -5,-10 0,-10z" 
fill="url(#LG1)"/>
diff --git a/samples/path-variations.svg b/samples/path-variations.svg
index 8d80aba..e878400 100644
--- a/samples/path-variations.svg
+++ b/samples/path-variations.svg
@@ -5,7 +5,6 @@
   <!-- variation on path definitions all leading to a 1x1 square -->
   <defs>
     <path d="M0,0 20,0 20,20 0,20 0,0z" fill="red" stroke="none" id="box"/>
-    <path d="M10,0 20,0 20,20 0,20 0,0z" fill="red" stroke="none" id="box"/>
     <path d="M0,0 10,0 10,10 0,10 0,0z" fill="red" stroke="none" id="box-sm"/>
     <path d="M0,0h20v20h-20z" fill="lime" id="box-lime"/>
     <path d="M0,0h20v20h-20z" id="box-nofill"/>
@@ -44,6 +43,7 @@
   <!-- Use use variations -->
   <use x="20" y="100" xlink:href="#box"/>
   <use x="0" y="0" xlink:href="#box" transform="translate(60,100)" id="box13"/>
+  <!-- reference to non existing -->
   <use x="10" y="100" xlink:href="#box1" transform="translate(80,0)"  id="box23"/>
   <use xlink:href="#box-sm" transform="matrix(2,0,0,2,100,100)"/>
   <g id="scaled-use" transform="matrix(2,0,0,2,140,100)">
@@ -109,14 +109,14 @@
       <use xlink:href="#mostly-hidden"/>
       <!-- hole clockwise w/ evenodd -->
       <path d="M20,20 80,20 80,80 20,80z M40,40 60,40 60,60 40,60 40,40z"
-       fill="lime" fill-opacity="0.8" fill-rule="evenodd" id="with-hole"/>
+       fill="lime" fill-opacity="0.8" fill-rule="evenodd" id="maybe-with-hole"/>
     </g>
     <g transform="matrix(0.2,0,0,0.2,80,0)">
       <use xlink:href="#border"/>
       <use xlink:href="#mostly-hidden"/>
       <!-- no hole: clockwise, missing fill-rule -->
       <path d="M20,20 80,20 80,80 20,80z M40,40 60,40 60,60 40,60 40,40z"
-       fill="lime" fill-opacity="0.8" id="maybe-with-hole"/>
+       fill="lime" fill-opacity="0.8" id="without-hole"/>
     </g>
     <g transform="matrix(0.2,0,0,0.2,120,0)">
       <!-- more holes counter-clockwise: smallest first -->


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]