diff --git a/shell/ev-window.c b/shell/ev-window.c index 83d607ba05971b5479d26b11a3b32104747e15da..5a218e2a979d33868dbdf930b9e9437c2e4b51ee 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -6054,6 +6054,12 @@ static void ev_window_begin_add_annot (EvWindow *window, EvAnnotationType annot_type) { + if (annot_type == EV_ANNOTATION_TYPE_TEXT_MARKUP && + ev_view_get_has_selection (EV_VIEW (window->priv->view))) { + ev_view_add_text_markup_annotation_for_selected_text (EV_VIEW (window->priv->view)); + return; + } + ev_view_begin_add_annotation (EV_VIEW (window->priv->view), annot_type); }