diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-02-25 11:04:01 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-02-25 17:18:59 +0100 |
commit | 2a3d436aa2fa7df3dc027e7c410ea8c34b908deb (patch) | |
tree | c4c630ddcd9e1817cf4fe34d31063b8be55613a9 /sw/source | |
parent | d48a11d6ece73003a3357ccc563c0ca19421ad4e (diff) |
sw: fix incorrect loop condition in SwTransferable::isComplex()
We're not consuming hints in that loop, so we want to end when the
iteration ended, not when the list of hints is empty.
Conflicts:
sw/qa/uibase/dochdl/dochdl.cxx
Change-Id: I2cb735c03c3551f7b0be8b314183780eedff9ecf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111558
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index 187332ba64f3..e58f95a95ccb 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -449,7 +449,7 @@ sal_Bool SAL_CALL SwTransferable::isComplex() { if (pTextNode->HasHints()) { - for (size_t nHint = 0; pTextNode->GetSwpHints().Count(); ++nHint) + for (size_t nHint = 0; nHint < pTextNode->GetSwpHints().Count(); ++nHint) { SwTextAttr* pHint = pTextNode->GetSwpHints().Get(nHint); if (pHint->Which() == RES_TXTATR_FLYCNT) |