~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/live_effects/parameter/array.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_ARRAY_CPP
 
2
 
 
3
/*
 
4
 * Copyright (C) Johan Engelen 2008 <j.b.c.engelen@utwente.nl>
 
5
 *
 
6
 * Released under GNU GPL, read the file 'COPYING' for more information
 
7
 */
 
8
 
 
9
#include "live_effects/parameter/array.h"
 
10
 
 
11
#include "svg/svg.h"
 
12
#include "svg/stringstream.h"
 
13
 
 
14
#include <2geom/coord.h>
 
15
 
 
16
namespace Inkscape {
 
17
 
 
18
namespace LivePathEffect {
 
19
 
 
20
template <>
 
21
double
 
22
ArrayParam<double>::readsvg(const gchar * str)
 
23
{
 
24
    double newx = Geom::infinity();
 
25
    sp_svg_number_read_d(str, &newx);
 
26
    return newx;
 
27
}
 
28
 
 
29
template <>
 
30
float
 
31
ArrayParam<float>::readsvg(const gchar * str)
 
32
{
 
33
    float newx = Geom::infinity();
 
34
    sp_svg_number_read_f(str, &newx);
 
35
    return newx;
 
36
}
 
37
 
 
38
} /* namespace LivePathEffect */
 
39
 
 
40
} /* namespace Inkscape */
 
41
 
 
42
/*
 
43
  Local Variables:
 
44
  mode:c++
 
45
  c-file-style:"stroustrup"
 
46
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
47
  indent-tabs-mode:nil
 
48
  fill-column:99
 
49
  End:
 
50
*/
 
51
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :