diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-22 13:19:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-22 13:19:18 +0000 |
commit | 88dad8fe1a94055dcbb05a6e6f0df2d007914a45 (patch) | |
tree | 76aa6758b64071f8cb8711d30a24303641d3e09f /vcl/unx | |
parent | 2fb74b1ae9fdd0c7b3b69187197895c78bf3c6a7 (diff) |
Resolves: tdf#104687 gtk2 paste cell text under a11y is fatal
Change-Id: Ia26ecf381e491b5591e05e0051b7162eb1d4bb56
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk/a11y/atkutil.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index e2f3573125e3..4a6db3dfcbd3 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -94,12 +94,16 @@ atk_wrapper_focus_idle_handler (gpointer data) if (xText.is()) { - gint caretPos = xText->getCaretPosition(); - - if ( caretPos != -1 ) - { - atk_object_notify_state_change( atk_obj, ATK_STATE_FOCUSED, TRUE ); - g_signal_emit_by_name( atk_obj, "text_caret_moved", caretPos ); + try { + gint caretPos = xText->getCaretPosition(); + + if ( caretPos != -1 ) + { + atk_object_notify_state_change( atk_obj, ATK_STATE_FOCUSED, TRUE ); + g_signal_emit_by_name( atk_obj, "text_caret_moved", caretPos ); + } + } catch (const uno::Exception& e) { + SAL_INFO("vcl.a11y", "exception: " << e.Message); } } } |