aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/projector.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/projector.hpp b/src/projector.hpp
index 4ef4b32..ae7526b 100644
--- a/src/projector.hpp
+++ b/src/projector.hpp
@@ -36,8 +36,9 @@ namespace opt_utilities
{}
//copy cstr
projector(const projector& rhs)
- :cm_per_pixel(rhs.cm_per_pixel)
+ :model<std::vector<T>,std::vector<T>,std::vector<T> >(rhs)
{
+ cm_per_pixel=rhs.cm_per_pixel;
attach_model(*(rhs.pmodel));
if(rhs.pcfunc)
{
@@ -51,7 +52,6 @@ namespace opt_utilities
//assign operator
projector& operator=(const projector& rhs)
{
- cm_per_pixel=rhs.cm_per_pixel;
if(pmodel)
{
pmodel->destroy();