Kaydet (Commit) 88dad8fe authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#104687 gtk2 paste cell text under a11y is fatal

Change-Id: Ia26ecf381e491b5591e05e0051b7162eb1d4bb56
üst 2fb74b1a
...@@ -94,12 +94,16 @@ atk_wrapper_focus_idle_handler (gpointer data) ...@@ -94,12 +94,16 @@ atk_wrapper_focus_idle_handler (gpointer data)
if (xText.is()) if (xText.is())
{ {
gint caretPos = xText->getCaretPosition(); try {
gint caretPos = xText->getCaretPosition();
if ( caretPos != -1 )
{ 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 ); 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);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment