[Libreoffice-commits] core.git: sw/source

Michael Stahl Michael.Stahl at cib.de
Fri May 11 14:54:26 UTC 2018


 sw/source/core/frmedt/feshview.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4b049a61153a556d76c6953b060da4c8cf9ba65b
Author: Michael Stahl <Michael.Stahl at 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 <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Reviewed-by: Michael Stahl <Michael.Stahl at 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 )


More information about the Libreoffice-commits mailing list