diff options
author | Mark Hung <marklh9@gmail.com> | 2018-10-08 21:49:44 +0800 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-10-27 19:07:42 +0200 |
commit | a9558457643af2c978a86ce1c744886d983a162d (patch) | |
tree | 7cd182d39580f1220a68a0b3134d450c4931143d /editeng | |
parent | 8b6f1d8460b931950b98b5968ff7734f3c128a4d (diff) |
tdf#119065 fix the style of two connected paragraphs.
Invoke ImpConnectParagraphs with bSpecialBackward set to
false by default in DeleteLeftOrRight(). Old design connect
backward when pressing backspace to connect two paragraphs.
The former paragraph of the two ( or the remain one ) adopt
the paragraph style ( bullet on/off status, color, etc. )
from the later paragraph.
It's hard to understand the intention of the original design,
and the design was not activated until LibreOffice6.1,
hence just don't connect backward anymore.
Change-Id: I3697acc01d718d7a769fb8d0bd573084c4fe2969
Reviewed-on: https://gerrit.libreoffice.org/61537
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
(cherry picked from commit 53d900fb334b2ce08ff19de0f765108e8c91a36f)
Reviewed-on: https://gerrit.libreoffice.org/61701
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 39192121fcf0..cd48e92ad4c9 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -2390,12 +2390,7 @@ EditPaM ImpEditEngine::DeleteLeftOrRight( const EditSelection& rSel, sal_uInt8 n if ( ( nDelMode == DeleteMode::RestOfContent ) || ( aDelStart.GetNode() == aDelEnd.GetNode() ) ) return ImpDeleteSelection( EditSelection( aDelStart, aDelEnd ) ); - // Decide now if to delete selection (RESTOFCONTENTS) - bool bSpecialBackward = ( nMode == DEL_LEFT ) && ( nDelMode == DeleteMode::Simple ); - if ( aStatus.IsAnyOutliner() ) - bSpecialBackward = false; - - return ImpConnectParagraphs( aDelStart.GetNode(), aDelEnd.GetNode(), bSpecialBackward ); + return ImpConnectParagraphs(aDelStart.GetNode(), aDelEnd.GetNode()); } EditPaM ImpEditEngine::ImpDeleteSelection(const EditSelection& rCurSel) |