[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - editeng/source
matteocam
matteo.campanelli at gmail.com
Thu Jul 30 04:30:37 PDT 2015
editeng/source/outliner/outlvw.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 4493543f1fa9420a67ac18e904d436dc0404a8a3
Author: matteocam <matteo.campanelli at gmail.com>
Date: Thu Jul 30 13:29:45 2015 +0200
Handle underflow after cutting text
Change-Id: I33d83d7423a18f71ea7c1c4d1a03580354e48092
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index 987bd0a..bff66ad 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -675,8 +675,13 @@ void OutlinerView::InsertText( const OutlinerParaObject& rParaObj )
void OutlinerView::Cut()
{
- if ( !ImpCalcSelectedPages( false ) || pOwner->ImpCanDeleteSelectedPages( this ) )
+ if ( !ImpCalcSelectedPages( false ) || pOwner->ImpCanDeleteSelectedPages( this ) ) {
pEditView->Cut();
+
+ // Chaining handling
+ if (aEndPasteLink.IsSet())
+ aEndPasteLink.Call(NULL);
+ }
}
void OutlinerView::Paste()
More information about the Libreoffice-commits
mailing list