reduce copying of svg attributes via @lightmare - refs #1360

This commit is contained in:
Dane Springmeyer 2012-07-31 16:56:22 -07:00
parent cdb50f86c7
commit 48c391da0d

View file

@ -66,10 +66,10 @@ public:
{
throw std::runtime_error("end_path : The path was not begun");
}
path_attributes attr = cur_attr();
unsigned idx = attributes_[attributes_.size() - 1].index;
path_attributes& attr = attributes_[attributes_.size() - 1];
unsigned idx = attr.index;
attr = cur_attr();
attr.index = idx;
attributes_[attributes_.size() - 1] = attr;
}
void move_to(double x, double y, bool rel=false) // M, m