From 15b770b81c1d8f387d03b85d916e9ad1c66e94ea Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Fri, 13 Jan 2012 07:48:19 +0100 Subject: Fix for bug #496793 (ctrl c ctrl v of text in edit mode crashes inkscape) by Chris Bainbridge. (bzr r10876) --- src/ui/clipboard.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3