Kaydet (Commit) 4b049a61 authored tarafından Michael Stahl's avatar Michael Stahl

sw: fix copypasta assertions

Change-Id: Ic064a738f5f17e006cc5ada125a5143e7cf57d32
Reviewed-on: https://gerrit.libreoffice.org/54120Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
üst 55ad38a4
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment