summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-11-13 11:07:06 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-11-16 11:00:15 +0100
commit8f9bbeb5618060504ed77ad7f05c45f4b00abc6d (patch)
tree11338d9e3254aa3683e8d6cb7ccdc9267a30b7f2
parentc3f78d6b29579911606700f136796c150c4547c2 (diff)
sw: fix misleading comments - SwFlyFrame::m_bAtCnt is set...
... for both AT_PARA and AT_CHAR. Change-Id: I13a9c9cc6f4c45b08bf178336826a37126055b3f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105808 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r--sw/source/core/inc/flyfrm.hxx1
-rw-r--r--sw/source/core/layout/tabfrm.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/inc/flyfrm.hxx b/sw/source/core/inc/flyfrm.hxx
index 464eadd7ec02..fec9a4936e5b 100644
--- a/sw/source/core/inc/flyfrm.hxx
+++ b/sw/source/core/inc/flyfrm.hxx
@@ -108,6 +108,7 @@ protected:
bool m_bInCnt :1; ///< RndStdIds::FLY_AS_CHAR, anchored as character
bool m_bAtCnt :1; ///< RndStdIds::FLY_AT_PARA, anchored at paragraph
+ ///< or RndStdIds::FLY_AT_CHAR
bool m_bLayout :1; ///< RndStdIds::FLY_AT_PAGE, RndStdIds::FLY_AT_FLY, at page or at frame
bool m_bAutoPosition :1; ///< RndStdIds::FLY_AT_CHAR, anchored at character
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 619afa8ba8a0..663db1974eb1 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -2770,7 +2770,7 @@ bool SwTabFrame::CalcFlyOffsets( SwTwips& rUpper,
// #i46807# - do not consider invalid
// Writer fly frames.
(pFly->isFrameAreaDefinitionValid() || bAddVerticalFlyOffsets) &&
- // fly anchored at character
+ // fly anchored at character or at paragraph
pFly->IsFlyAtContentFrame() &&
// fly overlaps with corresponding table rectangle
aFlyRect.IsOver( aRect ) &&