diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-03-17 12:53:46 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-03-17 12:53:46 +0000 |
| commit | d570aaf4446417dd50323db02470c1f9f5437b22 (patch) | |
| tree | d9afb4515a0e1264f8b7671ce3b8e72198af9ba7 /src/ui/dialog/text-edit.cpp | |
| parent | cppcheck (diff) | |
| download | inkscape-d570aaf4446417dd50323db02470c1f9f5437b22.tar.gz inkscape-d570aaf4446417dd50323db02470c1f9f5437b22.zip | |
cppcheck
(bzr r12218)
Diffstat (limited to 'src/ui/dialog/text-edit.cpp')
| -rw-r--r-- | src/ui/dialog/text-edit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/dialog/text-edit.cpp b/src/ui/dialog/text-edit.cpp index 67c6578f9..c87e94fc6 100644 --- a/src/ui/dialog/text-edit.cpp +++ b/src/ui/dialog/text-edit.cpp @@ -424,12 +424,11 @@ void TextEdit::onSelectionChange() void TextEdit::updateObjectText ( SPItem *text ) { GtkTextIter start, end; - gchar *str; // write text if (gtk_text_buffer_get_modified (text_buffer)) { gtk_text_buffer_get_bounds (text_buffer, &start, &end); - str = gtk_text_buffer_get_text (text_buffer, &start, &end, TRUE); + gchar *str = gtk_text_buffer_get_text (text_buffer, &start, &end, TRUE); sp_te_set_repr_text_multiline (text, str); g_free (str); gtk_text_buffer_set_modified (text_buffer, FALSE); |
