diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-07-01 21:07:56 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-07-01 21:07:56 +0800 |
commit | f477af8b2efca7139375caf3b57918a98417135a (patch) | |
tree | dcbdc299f4884204658eb4284750b342c2894740 /e-util/e-html-editor-selection.c | |
parent | 50b54628309e79f188baa6df8dfb0bb64f64aee3 (diff) | |
download | gsoc2013-evolution-f477af8b2efca7139375caf3b57918a98417135a.tar gsoc2013-evolution-f477af8b2efca7139375caf3b57918a98417135a.tar.gz gsoc2013-evolution-f477af8b2efca7139375caf3b57918a98417135a.tar.bz2 gsoc2013-evolution-f477af8b2efca7139375caf3b57918a98417135a.tar.lz gsoc2013-evolution-f477af8b2efca7139375caf3b57918a98417135a.tar.xz gsoc2013-evolution-f477af8b2efca7139375caf3b57918a98417135a.tar.zst gsoc2013-evolution-f477af8b2efca7139375caf3b57918a98417135a.zip |
EHTMLEditorSelection - Try to move with the caret only when it is possible to save it
Diffstat (limited to 'e-util/e-html-editor-selection.c')
-rw-r--r-- | e-util/e-html-editor-selection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c index 87138dc075..3fcdad8808 100644 --- a/e-util/e-html-editor-selection.c +++ b/e-util/e-html-editor-selection.c @@ -5746,6 +5746,8 @@ e_html_editor_selection_scroll_to_caret (EHTMLEditorSelection *selection) WebKitDOMElement *caret; caret = e_html_editor_selection_save_caret_position (selection); + if (!caret) + return; view = e_html_editor_selection_ref_html_editor_view (selection); document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view)); |