summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-11-08 21:18:56 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-11-08 21:18:56 +0000
commit3a381f68ffa8d79efa00ff6d781a1454efc43082 (patch)
tree9389725b946db51cbe8464f486306cb3e8912366 /src
parentFix a bug pointed by su_v in IRC aboutr shapes (diff)
downloadinkscape-3a381f68ffa8d79efa00ff6d781a1454efc43082.tar.gz
inkscape-3a381f68ffa8d79efa00ff6d781a1454efc43082.zip
fix missing assignment to variable.
(bzr r13683)
Diffstat (limited to 'src')
-rw-r--r--src/svg/svg-angle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/svg/svg-angle.cpp b/src/svg/svg-angle.cpp
index 63152368e..ed5ccd45e 100644
--- a/src/svg/svg-angle.cpp
+++ b/src/svg/svg-angle.cpp
@@ -104,15 +104,19 @@ static bool sp_svg_angle_read_lff(gchar const *str, SVGAngle::Unit &unit, float
} else {
if (strncmp(e, "deg", 3) == 0) {
unit = SVGAngle::DEG;
+ val = v;
computed = v;
} else if (strncmp(e, "grad", 4) == 0) {
unit = SVGAngle::GRAD;
+ val = v;
computed = Inkscape::Util::Quantity::convert(v, "grad", "°");
} else if (strncmp(e, "rad", 3) == 0) {
unit = SVGAngle::RAD;
+ val = v;
computed = Inkscape::Util::Quantity::convert(v, "rad", "°");
} else if (strncmp(e, "turn", 4) == 0) {
unit = SVGAngle::TURN;
+ val = v;
computed = Inkscape::Util::Quantity::convert(v, "turn", "°");
} else {
return false;