diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-10-11 16:28:55 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-10-11 16:29:04 +0000 |
| commit | 157ea34ce87b49756f0fe2f6ba81c5a09c42c0f9 (patch) | |
| tree | 89672d1bbe3726382cce72692c7ca32e679cd6b6 /src/text-editing.cpp | |
| parent | Fix slowdown from switching Text tool a lot (diff) | |
| download | inkscape-157ea34ce87b49756f0fe2f6ba81c5a09c42c0f9.tar.gz inkscape-157ea34ce87b49756f0fe2f6ba81c5a09c42c0f9.zip | |
Initialize some uninitialized variables
Diffstat (limited to 'src/text-editing.cpp')
| -rw-r--r-- | src/text-editing.cpp | 2 |
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) |
