summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es>2017-10-10 11:08:51 +0000
committerJabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es>2017-10-10 11:08:51 +0000
commitc001f1a01e89595de48dcae99411e1ac0b18209a (patch)
treefff4e0a0e49c1048c9048287d92799b6564dd244 /src
parentFixes for transforms in LPE shapes (diff)
downloadinkscape-c001f1a01e89595de48dcae99411e1ac0b18209a.tar.gz
inkscape-c001f1a01e89595de48dcae99411e1ac0b18209a.zip
Fix a bug pointed by CR on copyng throught layers
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-measure-segments.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/live_effects/lpe-measure-segments.cpp b/src/live_effects/lpe-measure-segments.cpp
index 738990bc0..90f469963 100644
--- a/src/live_effects/lpe-measure-segments.cpp
+++ b/src/live_effects/lpe-measure-segments.cpp
@@ -370,8 +370,8 @@ LPEMeasureSegments::createLine(Geom::Point start,Geom::Point end, const char * i
if (main &&
std::abs(text_top_bottom) < fontsize/1.5 &&
- hide_back){
- Geom::Path line_path;
+ hide_back)
+ {
double k = 0;
if (flip_side) {
k = (Geom::distance(start,end)/2.0) + arrow_gap - (anotation_width/2.0);
@@ -389,7 +389,7 @@ LPEMeasureSegments::createLine(Geom::Point start,Geom::Point end, const char * i
//k = std::max(k , arrow_gap -1);
Geom::Ray ray(end, start);
Geom::Coord angle = ray.angle();
- line_path.start(start);
+ Geom::Path line_path(start);
line_path.appendNew<Geom::LineSegment>(start - Point::polar(angle, k));
line_pathv.push_back(line_path);
line_path.clear();
@@ -397,8 +397,7 @@ LPEMeasureSegments::createLine(Geom::Point start,Geom::Point end, const char * i
line_path.appendNew<Geom::LineSegment>(end);
line_pathv.push_back(line_path);
} else {
- Geom::Path line_path;
- line_path.start(start);
+ Geom::Path line_path(start);
line_path.appendNew<Geom::LineSegment>(end);
line_pathv.push_back(line_path);
}