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

Related: tdf#95682 set edit to modified after insert symbol/paste

Change-Id: If5892931649bde3d1fc00c0e5817149d0623cb1e
üst 5fe66069
...@@ -1558,14 +1558,20 @@ IMPL_LINK_NOARG_TYPED(SentenceEditWindow_Impl, ToolbarHdl, ToolBox *, void) ...@@ -1558,14 +1558,20 @@ IMPL_LINK_NOARG_TYPED(SentenceEditWindow_Impl, ToolbarHdl, ToolBox *, void)
{ {
const sal_uInt16 nCurItemId = m_xToolbar->GetCurItemId(); const sal_uInt16 nCurItemId = m_xToolbar->GetCurItemId();
if (nCurItemId == m_xToolbar->GetItemId("paste")) if (nCurItemId == m_xToolbar->GetItemId("paste"))
{
Paste(); Paste();
CallModifyLink();
}
else if (nCurItemId == m_xToolbar->GetItemId("insert")) else if (nCurItemId == m_xToolbar->GetItemId("insert"))
{ {
if (Edit::GetGetSpecialCharsFunction()) if (Edit::GetGetSpecialCharsFunction())
{ {
OUString aChars = Edit::GetGetSpecialCharsFunction()( this, GetFont() ); OUString aChars = Edit::GetGetSpecialCharsFunction()( this, GetFont() );
if (!aChars.isEmpty()) if (!aChars.isEmpty())
{
ReplaceSelected(aChars); ReplaceSelected(aChars);
CallModifyLink();
}
} }
} }
} }
......
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