~bryonak/gnuclad/trunk

« back to all changes in this revision

Viewing changes to src/generator/svg.cpp

  • Committer: bryonak
  • Date: 2011-04-01 17:59:24 UTC
  • Revision ID: bryonak@freenet.de-20110401175924-hv869v9qhyqcen3u
gnuclad 0.2.4 RELEASE
generator/svg.cpp:
    fix: validate XML in namechange description (thanks to Daniel Dobert)
doc/src:
    improved programming examples

Show diffs side-by-side

added added

removed removed

Lines of Context:
510
510
      }
511
511
 
512
512
      if(clad->descriptionType == 1)
513
 
        href = "<a xlink:href='" + n->nameChanges[j].description + "'>";
 
513
        href = "<a xlink:href='" + validxml(n->nameChanges[j].description, false) + "'>";
514
514
 
515
515
      if(clad->labelBGOpacity > 0 && clad->nameChangeType != nc_inside)
516
516
        f << "    <rect x='" << posX - dirty_hack_em/4 << "' y='" << posY - dirty_hack_ex *6/5 << "' width='" << strlenpx(n->nameChanges[j].newName, clad)