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

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu May 30 16:21:01 UTC 2019


 sw/source/core/doc/docbm.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 79b233be14e75157aecd97179c568baad0a60016
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu May 30 16:03:13 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu May 30 18:19:41 2019 +0200

    "more than USHRT_MAX marks" seems to be fine now
    
    Change-Id: Iccd87324b56fb7ff003f028330758024e47f3f26
    Reviewed-on: https://gerrit.libreoffice.org/73207
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 283585c7aa2c..096c6ab29549 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -421,10 +421,6 @@ namespace sw { namespace mark
                 pPos2->nContent.GetIndex());
         }
 #endif
-        // see for example _SaveContentIdx, Shells
-        OSL_PRECOND(m_vAllMarks.size() < USHRT_MAX,
-            "MarkManager::makeMark(..)"
-            " - more than USHRT_MAX marks are not supported correctly");
         // There should only be one CrossRefBookmark per Textnode per Type
         if ((eType == MarkType::CROSSREF_NUMITEM_BOOKMARK || eType == MarkType::CROSSREF_HEADING_BOOKMARK)
             && (lcl_FindMarkAtPos(m_vBookmarks, *rPaM.Start(), eType) != m_vBookmarks.end()))


More information about the Libreoffice-commits mailing list