diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1999-12-02 02:36:50 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-12-02 02:36:50 +0800 |
commit | 5dc6462368b2c6a0f5b2c6905068b9a3c25006e0 (patch) | |
tree | daff333c11b955b601ec9fa5cfaacfff275dde23 /widgets/table/e-cell-text.c | |
parent | f0da5ba3d04aa0c50d96d1002c22cde34909f00c (diff) | |
download | gsoc2013-evolution-5dc6462368b2c6a0f5b2c6905068b9a3c25006e0.tar gsoc2013-evolution-5dc6462368b2c6a0f5b2c6905068b9a3c25006e0.tar.gz gsoc2013-evolution-5dc6462368b2c6a0f5b2c6905068b9a3c25006e0.tar.bz2 gsoc2013-evolution-5dc6462368b2c6a0f5b2c6905068b9a3c25006e0.tar.lz gsoc2013-evolution-5dc6462368b2c6a0f5b2c6905068b9a3c25006e0.tar.xz gsoc2013-evolution-5dc6462368b2c6a0f5b2c6905068b9a3c25006e0.tar.zst gsoc2013-evolution-5dc6462368b2c6a0f5b2c6905068b9a3c25006e0.zip |
Fix it correctly -miguel
svn path=/trunk/; revision=1452
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r-- | widgets/table/e-cell-text.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index e496a50cb4..d9d8a568db 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -184,15 +184,12 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, if (edit_display){ CellEdit *edit = text_view->edit; const char *text = gtk_entry_get_text (edit->entry); - GdkWChar *p, *text_wc; - int text_wc_len; + GdkWChar *p, *text_wc = g_new (GdkWChar, strlen (text) + 1); + int text_wc_len = gdk_mbstowcs (text_wc, text, strlen (text)); const int cursor_pos = GTK_EDITABLE (edit->entry)->current_pos; const int left_len = gdk_text_width_wc (text_view->font, text_wc, cursor_pos); - text_wc = g_new (GdkWChar, strlen (text) + 1); - text_wc_len = gdk_mbstowcs (text_wc, text, strlen (text)); text_wc [text_wc_len] = 0; - /* * Paint */ |