aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-07-01 21:07:56 +0800
committerTomas Popela <tpopela@redhat.com>2014-07-01 21:07:56 +0800
commitf477af8b2efca7139375caf3b57918a98417135a (patch)
treedcbdc299f4884204658eb4284750b342c2894740
parent50b54628309e79f188baa6df8dfb0bb64f64aee3 (diff)
downloadgsoc2013-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
-rw-r--r--e-util/e-html-editor-selection.c2
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));