diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2012-01-13 06:48:19 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2012-01-13 06:48:19 +0000 |
| commit | 15b770b81c1d8f387d03b85d916e9ad1c66e94ea (patch) | |
| tree | f40811c3d7f4c3141d7778532b334efde80decf9 /src | |
| parent | LPE: originalpath parameters: implement select original button (diff) | |
| download | inkscape-15b770b81c1d8f387d03b85d916e9ad1c66e94ea.tar.gz inkscape-15b770b81c1d8f387d03b85d916e9ad1c66e94ea.zip | |
Fix for bug #496793 (ctrl c ctrl v of text in edit mode crashes inkscape) by Chris Bainbridge.
(bzr r10876)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/clipboard.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index 13b1da427..1cdcefd1a 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -247,9 +247,7 @@ void ClipboardManagerImpl::copy(SPDesktop *desktop) if (tools_isactive(desktop, TOOLS_TEXT)) { _discardInternalClipboard(); Glib::ustring selected_text = sp_text_get_selected_text(desktop->event_context); - if (!selected_text.empty()) { - _clipboard->set_text(selected_text); - } + _clipboard->set_text(selected_text); if (_text_style) { sp_repr_css_attr_unref(_text_style); _text_style = NULL; |
