~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/sp-symbol.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * Released under GNU GPL, read the file 'COPYING' for more information
12
12
 */
13
13
 
14
 
#include "config.h"
 
14
#ifdef HAVE_CONFIG_H
 
15
# include "config.h"
 
16
#endif
 
17
 
 
18
#include <cstring>
 
19
#include <string>
15
20
 
16
21
#include "libnr/nr-matrix-fns.h"
17
22
#include "libnr/nr-matrix-ops.h"
20
25
#include "attributes.h"
21
26
#include "print.h"
22
27
#include "sp-symbol.h"
 
28
#include "document.h"
23
29
 
24
30
static void sp_symbol_class_init (SPSymbolClass *klass);
25
31
static void sp_symbol_init (SPSymbol *symbol);
383
389
        symbol = SP_SYMBOL (object);
384
390
 
385
391
        if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
386
 
                repr = sp_repr_new ("svg:symbol");
 
392
                Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
 
393
                repr = xml_doc->createElement("svg:symbol");
387
394
        }
388
395
 
389
396
        repr->setAttribute("viewBox", object->repr->attribute("viewBox"));