From: Enrico Tröger Date: Thu, 12 Feb 2009 21:37:08 +0000 (+0100) Subject: Let midori_view_get_selected_text work as expected again X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45b47478687b0ce4d0b9d689e6ed8192d8b7f865;p=midori Let midori_view_get_selected_text work as expected again --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 7d15e412..697974ce 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1779,9 +1779,8 @@ midori_view_get_selected_text (MidoriView* view) g_return_val_if_fail (MIDORI_IS_VIEW (view), NULL); if (midori_view_has_selection (view)) - return midori_view_get_selected_text (view); - else - return NULL; + return view->selected_text; + return NULL; } /**