From 93e7cf250208c36befb4b1a7337f5302c0e1da54 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 19 May 2013 21:08:13 +0300 Subject: [PATCH] Some more member mis-use fixes --- source/geometry/angle.h | 2 +- source/geometry/transformedshape.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/geometry/angle.h b/source/geometry/angle.h index fbf6d06..207a5a2 100644 --- a/source/geometry/angle.h +++ b/source/geometry/angle.h @@ -20,7 +20,7 @@ private: public: Angle(): value(0) { } template - Angle(const Angle &other): value(other.value) { } + Angle(const Angle &other): value(other.radians()) { } static Angle from_degrees(T); static Angle from_radians(T); diff --git a/source/geometry/transformedshape.h b/source/geometry/transformedshape.h index 10af1e7..10789ed 100644 --- a/source/geometry/transformedshape.h +++ b/source/geometry/transformedshape.h @@ -47,7 +47,7 @@ inline TransformedShape &TransformedShape::operator=(const Transform { delete shape; shape = other.shape->clone(); - transformation = other.transformation(); + transformation = other.transformation; } template -- 2.45.2