summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-05-04 12:22:01 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-05-11 16:53:59 +0200
commit4b049a61153a556d76c6953b060da4c8cf9ba65b (patch)
tree14b0004a8c2ca1669ddcfc2b4ceb789e55babe2d
parent55ad38a42077f35910c84c8b3e33fe46c33369a4 (diff)
sw: fix copypasta assertions
Change-Id: Ic064a738f5f17e006cc5ada125a5143e7cf57d32 Reviewed-on: https://gerrit.libreoffice.org/54120 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
-rw-r--r--sw/source/core/frmedt/feshview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index 7e229f55464e..6c0c63197a22 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -402,7 +402,7 @@ bool SwFEShell::MoveAnchor( SwMove nDir )
}
case RndStdIds::FLY_AT_CHAR:
{
- OSL_ENSURE( pOld->IsContentFrame(), "Wrong anchor, page expected." );
+ OSL_ENSURE(pOld->IsTextFrame(), "Wrong anchor, text frame expected.");
if( SwMove::LEFT == nDir || SwMove::RIGHT == nDir )
{
SwPosition pos = *aAnch.GetContentAnchor();
@@ -437,7 +437,7 @@ bool SwFEShell::MoveAnchor( SwMove nDir )
}
case RndStdIds::FLY_AT_PARA:
{
- OSL_ENSURE( pOld->IsContentFrame(), "Wrong anchor, page expected." );
+ OSL_ENSURE(pOld->IsTextFrame(), "Wrong anchor, text frame expected.");
if( SwMove::UP == nDir )
pNew = pOld->FindPrev();
else if( SwMove::DOWN == nDir )