tdf#119128 toggle INSERT/OVERWRITE is broken
Regression of 632bc11ce8
("tdf#117017 Pasting into the formula bar shouldn't
retain formatting"). Toggling the overwrite mode sets
the EVControlBits::OVERWRITE bit from inside the editeng
keyboard handler, so make sure to not override it.
Change-Id: I2b5e3fe9cb885ed20e7528fdfe2fd59f5ef05f42
Reviewed-on: https://gerrit.libreoffice.org/58658
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
This commit is contained in:
@@ -3412,15 +3412,14 @@ bool ScInputHandler::KeyInput( const KeyEvent& rKEvt, bool bStartEdit /* = false
|
||||
{
|
||||
if (pTableView)
|
||||
{
|
||||
EVControlBits nControl = pTableView->GetControlWord();
|
||||
if (pTopView)
|
||||
pTableView->SetControlWord(nControl | EVControlBits::SINGLELINEPASTE);
|
||||
pTableView->SetControlWord(pTableView->GetControlWord() | EVControlBits::SINGLELINEPASTE);
|
||||
|
||||
vcl::Window* pFrameWin = pActiveViewSh ? pActiveViewSh->GetFrameWin() : nullptr;
|
||||
if ( pTableView->PostKeyEvent( rKEvt, pFrameWin ) )
|
||||
bUsed = true;
|
||||
|
||||
pTableView->SetControlWord(nControl);
|
||||
pTableView->SetControlWord(pTableView->GetControlWord() & ~EVControlBits::SINGLELINEPASTE);
|
||||
}
|
||||
if (pTopView)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user