From 45b47478687b0ce4d0b9d689e6ed8192d8b7f865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 12 Feb 2009 22:37:08 +0100 Subject: [PATCH] Let midori_view_get_selected_text work as expected again --- midori/midori-view.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } /**