diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2015-12-05 14:40:56 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2015-12-05 14:40:56 +0000 |
| commit | 78005ad417dde6dddab40efacb757b1d6b0c03d0 (patch) | |
| tree | a827191465ff949ec952b55ffed30fe943cab019 /src/svg | |
| parent | added comment + simpler rounding (diff) | |
| download | inkscape-78005ad417dde6dddab40efacb757b1d6b0c03d0.tar.gz inkscape-78005ad417dde6dddab40efacb757b1d6b0c03d0.zip | |
Handle units in the 'x', 'y', 'dx', and 'dy' text and tspan attributes.
Fixed bugs:
- https://launchpad.net/bugs/1522478
- https://launchpad.net/bugs/262528
- https://launchpad.net/bugs/168845
(bzr r14505)
Diffstat (limited to 'src/svg')
| -rw-r--r-- | src/svg/svg-length.cpp | 2 | ||||
| -rw-r--r-- | src/svg/svg-length.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp index edbc59c36..cd995582d 100644 --- a/src/svg/svg-length.cpp +++ b/src/svg/svg-length.cpp @@ -463,7 +463,7 @@ unsigned int sp_svg_length_read_ldd(gchar const *str, SVGLength::Unit *unit, dou return r; } -std::string const SVGLength::write() +std::string SVGLength::write() const { return sp_svg_length_write_with_units(*this); } diff --git a/src/svg/svg-length.h b/src/svg/svg-length.h index 84056dd5f..2aaf248b1 100644 --- a/src/svg/svg-length.h +++ b/src/svg/svg-length.h @@ -57,7 +57,7 @@ public: bool read(char const *str); void readOrUnset(char const *str, Unit u = NONE, float v = 0, float c = 0); bool readAbsolute(char const *str); - std::string const write(); + std::string write() const; // To set 'v' use '=' void set(Unit u, float v); // Sets computed value based on u and v. void set(Unit u, float v, float c); // Sets all three values. |
