diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-08 10:39:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-08 10:39:12 +0400 |
commit | 2dba2e72b76ba2933d6ca7d3e79ad669c430e3a5 (patch) | |
tree | 19e2d2af6a5923952d29151d5ae43a69b11508e4 /source/blender/editors/curve | |
parent | 3fbd63c52e25344f115b5cd67a218436bc4007cf (diff) |
Code Cleanup: de-duplicate text pasting which only used the first line
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editfont.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index 56b8c96c60a..b76eaaf47b7 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -515,14 +515,12 @@ static int paste_from_clipboard(bContext *C, ReportList *reports) int filelen; int retval; - strp = WM_clipboard_text_get(false); + strp = WM_clipboard_text_get(false, &filelen); if (strp == NULL) { BKE_report(reports, RPT_ERROR, "Clipboard empty"); return OPERATOR_CANCELLED; } - filelen = strlen(strp); - if ((filelen <= MAXTEXT) && font_paste_utf8(C, strp, filelen)) { text_update_edited(C, scene, obedit, 1, FO_EDIT); retval = OPERATOR_FINISHED; |