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

« back to all changes in this revision

Viewing changes to src/svg/stringstream.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "svg/stringstream.h"
2
2
#include "svg/strip-trailing-zeros.h"
3
 
#include "prefs-utils.h"
 
3
#include "preferences.h"
 
4
#include <2geom/point.h>
4
5
 
5
6
Inkscape::SVGOStringStream::SVGOStringStream()
6
7
{
12
13
    /* This one is (currently) needed though, as we currently use ostr.precision as a sort of
13
14
       variable for storing the desired precision: see our two precision methods and our operator<<
14
15
       methods for float and double. */
15
 
    ostr.precision(prefs_get_int_attribute("options.svgoutput", "numericprecision", 8));
 
16
    Inkscape::Preferences *prefs = Inkscape::Preferences::get();
 
17
    ostr.precision(prefs->getInt("/options/svgoutput/numericprecision", 8));
16
18
}
17
19
 
18
20
Inkscape::SVGOStringStream &
57
59
    return os;
58
60
}
59
61
 
 
62
Inkscape::SVGOStringStream &
 
63
operator<<(Inkscape::SVGOStringStream &os, Geom::Point const & p)
 
64
{
 
65
    os << p[0] << ',' << p[1];
 
66
    return os;
 
67
}
60
68
 
61
69
/*
62
70
  Local Variables: