diff options
author | Gülşah Köse <gulsah.kose@collabora.com> | 2024-03-14 09:09:51 +0300 |
---|---|---|
committer | Gülşah Köse <gulsah.kose@collabora.com> | 2024-03-15 13:54:42 +0100 |
commit | ff637041bd96cd1e4ea0ef78e54b1d89cb627dc3 (patch) | |
tree | 7488590d503371fb56167d5c4736257de1324872 | |
parent | 2a263f9114985fcdcab9e9bfc035c6593ec40f1c (diff) |
tdf#160213 Don't let insert empty line with numbering, end numbering
We applied the writer's empty bullet line policy to impres. Now We don't let
insert empty bullet lines in impress too. Instead we end numbering and start
to write normal paragraph at the same line.
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I28042d9db59b5622434da0826f8b760f01ad64f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164799
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit f3f3ea4cc9c3bec761d095fbfefd6ba8724fcdef)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164829
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-rw-r--r-- | editeng/source/outliner/outlvw.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx index fa17099f043f..356d8076481c 100644 --- a/editeng/source/outliner/outlvw.cxx +++ b/editeng/source/outliner/outlvw.cxx @@ -189,6 +189,13 @@ bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, vcl::Window const * pFra if( !aKeyCode.IsShift() ) { + // Don't let insert empty paragraph with numbering. Instead end numbering. + if (pPara->GetDepth() > -1 && + pOwner->pEditEngine->GetTextLen( aSel.nEndPara ) == 0) + { + ToggleBullets(); + return true; + } // ImpGetCursor again??? if( !bSelection && aSel.nEndPos == pOwner->pEditEngine->GetTextLen( aSel.nEndPara ) ) |