sc/source/ui/unoobj/chart2uno.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit d0a42ce9b1033a200f8d354c1abf8c3b0d569f46 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Wed Feb 16 01:40:51 2022 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Wed Feb 16 08:21:25 2022 +0100 avoid debug build failing on an assert for tdf#144537 It really should be an assert, and something is clearly wrong, as the chart shows one row twice after the operation, but I have no idea how to fix this, and it's not that critical, so reduce to just a warning until somebody fixes the problem. Change-Id: Idf0a3496a6f0472301ecb3c0e53ead43312c2f84 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129980 Tested-by: Luboš Luňák <l.lu...@collabora.com> Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index a5050837ebbc..447e3b2ae6d0 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -2791,8 +2791,9 @@ void ScChart2DataSequence::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint if (bChanged) { - assert(m_oRangeIndices->size() == aRanges.size() && - "range list and range index list have different sizes after the reference update."); + // TODO: This should be an assert, but tdf#144537 triggers it. + SAL_WARN_IF(m_oRangeIndices->size() == aRanges.size(), + "sc.ui", "range list and range index list have different sizes after the reference update."); // Bring the change back from the range list to the token list. UpdateTokensFromRanges(aRanges);