[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - 2 commits - editeng/source svx/source
matteocam
matteo.campanelli at gmail.com
Thu Aug 7 09:12:05 PDT 2014
editeng/source/editeng/impedit3.cxx | 1 +
svx/source/svdraw/svdotext.cxx | 3 ---
svx/source/svdraw/svdotxed.cxx | 2 +-
3 files changed, 2 insertions(+), 4 deletions(-)
New commits:
commit ff6679cf9410bdcce2a47228d1a8ece4f168a046
Author: matteocam <matteo.campanelli at gmail.com>
Date: Thu Aug 7 18:10:57 2014 +0200
Debugging output for Overflowing paragraph
Change-Id: I0ac2fc1da4d70d8f382d4652934ceb63944dd3fc
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index db1aad8..a6a21ae 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -429,6 +429,7 @@ void ImpEditEngine::FormatDoc()
// FIXME(matteocam)
// set possible point for chainging
mnOverflowingPara = nPara;
+ fprintf(stderr, "[CHAINING] Setting first overflowing para: %d\n", nPara);
}
// InvalidRect set only once...
commit f5a1c7c94ddd06d44393db4cec2a4912075dde00
Author: matteocam <matteo.campanelli at gmail.com>
Date: Thu Aug 7 18:01:26 2014 +0200
Check whether text box is not its own next link in chain
Change-Id: I440856afa23ef77b65df0b8e77482383bfc54934
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index d70995b..cbdec1e 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1947,11 +1947,8 @@ void SdrTextObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus )
}
else if ( GetNextLinkInChain() != NULL && pEditStatus->IsPageOverflow())
{
- // FIXME(matteocam): should include check that the TextBox has a next chain link
-
// set the need for chaining
SetToBeChained( true );
-
//impDecomposeChainedTextPrimitive();
}
}
diff --git a/svx/source/svdraw/svdotxed.cxx b/svx/source/svdraw/svdotxed.cxx
index cffa559..76d3296 100644
--- a/svx/source/svdraw/svdotxed.cxx
+++ b/svx/source/svdraw/svdotxed.cxx
@@ -261,7 +261,7 @@ void SdrTextObj::EndTextEdit(SdrOutliner& rOutl)
// FIXME(matteocam)
// TODO: move this to one level higher
- if ( IsToBeChained() )
+ if ( IsToBeChained() && GetNextLinkInChain() != this) // XXX: defensive check
{
// set non overflow part of text to current box
pNewText = rOutl.GetNonOverflowingParaObject();
More information about the Libreoffice-commits
mailing list