diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-05-09 00:30:45 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-09 19:36:58 +0000 |
commit | c127bd129667232d20653aadd7ba2a5344ed8f0a (patch) | |
tree | 0e62415106a8bf1c9046ee4f1fb3d6ce3c7261a8 /sw | |
parent | 4fb7ff0dfde0f5163a148c6f9e542352a1528b12 (diff) |
sw: remove bogus assert in SwDoc::IsInHeaderFooter()
If the for loop has a break after the first frame anchored on that node,
it makes no sense to assert that all frames have been visited.
(regression from bb95f7e6f7c9b1281875e6d729b66b6018794ee0)
Change-Id: Ibd8d65f286b441127be7735c63f4b84ba94dcb6f
(cherry picked from commit fb0553d6b4905fe2c923a2b5591c001d0be52398)
Reviewed-on: https://gerrit.libreoffice.org/15687
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/doclay.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx index b2f57f6dfcf4..6e35170c25d3 100644 --- a/sw/source/core/doc/doclay.cxx +++ b/sw/source/core/doc/doclay.cxx @@ -1565,9 +1565,6 @@ bool SwDoc::IsInHeaderFooter( const SwNodeIndex& rIdx ) const OSL_ENSURE( mbInReading, "Found a FlySection but not a Format!" ); return false; } -#if OSL_DEBUG_LEVEL > 0 - assert( checkFmts.empty()); -#endif } return 0 != pNd->FindHeaderStartNode() || |