<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Last-letter bug in korean"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=117008#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Last-letter bug in korean"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=117008">bug 117008</a>
from <span class="vcard"><a class="email" href="mailto:cogniti@gmail.com" title="cogniti@gmail.com <cogniti@gmail.com>"> <span class="fn">cogniti@gmail.com</span></a>
</span></b>
<pre>I have no time to compile and test it.
hodong@debian:~/Downloads/libreoffice-5.2.7.2$ git diff
diff --git a/vcl/unx/generic/app/i18n_ic.cxx b/vcl/unx/generic/app/i18n_ic.cxx
index a67e589..fedf1de 100644
--- a/vcl/unx/generic/app/i18n_ic.cxx
+++ b/vcl/unx/generic/app/i18n_ic.cxx
@@ -618,6 +618,17 @@ SalI18N_InputContext::UnsetICFocus( SalFrame* pFrame )
}
}
+void
+SalI18N_InputContext::ResetIC()
+{
+ if ( mbUseable && (maContext != nullptr) && maClientData.pFrame )
+ {
+ char *text;
+ text = Xutf8ResetIC( maContext );
+ free (text);
+ }
+}
+
// multi byte input method only
void
diff --git a/vcl/unx/generic/window/salframe.cxx
b/vcl/unx/generic/window/salframe.cxx
index 061abbf..50326c1 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -2653,6 +2653,7 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
}
else if( pEvent->type == ButtonPress )
{
+ mpInputContext->ResetIC();
// see if the user clicks outside all of the floats
// if yes release the grab
bool bInside = false;</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>