]> spindle.queued.net Git - midori/commitdiff
Let midori_view_get_selected_text work as expected again
authorEnrico Tröger <enrico.troeger@uvena.de>
Thu, 12 Feb 2009 21:37:08 +0000 (22:37 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 12 Feb 2009 21:37:08 +0000 (22:37 +0100)
midori/midori-view.c

index 7d15e412a2e9dd52eba3d557cb9e8eee27befe07..697974cec12a1180317a21891f03eaf8109acb76 100644 (file)
@@ -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;
 }
 
 /**