From 157ea34ce87b49756f0fe2f6ba81c5a09c42c0f9 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Fri, 11 Oct 2019 18:28:55 +0200 Subject: Initialize some uninitialized variables --- src/text-editing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/text-editing.cpp') 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) -- cgit v1.2.3