Kaydet (Commit) 79b233be authored tarafından Noel Grandin's avatar Noel Grandin

"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: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 6f179ce5
......@@ -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()))
......
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