summaryrefslogtreecommitdiffstats
path: root/src/text-editing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/text-editing.cpp')
-rw-r--r--src/text-editing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text-editing.cpp b/src/text-editing.cpp
index ab2ddd25d..45afcb653 100644
--- a/src/text-editing.cpp
+++ b/src/text-editing.cpp
@@ -128,7 +128,7 @@ sp_te_get_cursor_coords (SPItem const *item, Inkscape::Text::Layout::iterator co
Inkscape::Text::Layout const *layout = te_get_layout(item);
double height, rotation;
layout->queryCursorShape(position, p0, height, rotation);
- p1 = Geom::Point(p0[Geom::X] + height * sin(rotation), p0[Geom::Y] - height * cos(rotation));
+ p1 = Geom::Point(p0[Geom::X] + height * sin(rotation), p0[Geom::Y] - height * cos(rotation)); // valgrind warns that rotation is not initialized here. Why is to be seen in queryCursorShape
}
SPStyle const * sp_te_style_at_position(SPItem const *text, Inkscape::Text::Layout::iterator const &position)