sw/source/core/frmedt/feshview.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 4b049a61153a556d76c6953b060da4c8cf9ba65b Author: Michael Stahl <michael.st...@cib.de> Date: Fri May 4 12:22:01 2018 +0200 sw: fix copypasta assertions Change-Id: Ic064a738f5f17e006cc5ada125a5143e7cf57d32 Reviewed-on: https://gerrit.libreoffice.org/54120 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Reviewed-by: Michael Stahl <michael.st...@cib.de> 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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits