From 9fdecc7ede30f2c0c356d97cca2c5bfe98d9ad92 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 16 Mar 2017 14:36:48 +0100 Subject: [PATCH] Add comment to SwContent::nYPosition Change-Id: I0979ada2a31125419ca38b98e7141cfbc1887b28 --- sw/source/uibase/inc/swcont.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sw/source/uibase/inc/swcont.hxx b/sw/source/uibase/inc/swcont.hxx index 078304a59f37..69b2f91198b5 100644 --- a/sw/source/uibase/inc/swcont.hxx +++ b/sw/source/uibase/inc/swcont.hxx @@ -72,6 +72,10 @@ class SwContent : public SwTypeNumber const SwContentType* pParent; OUString sContentName; long nYPosition; + // most subclasses appear to use this for a tools/gen.hxx-style + // geometric Y position, while SwOutlineContent wants to store a + // SwOutlineNodes::size_type value (where all such values used in + // practice hopefully fit into 'long') bool bInvisible; public: SwContent(const SwContentType* pCnt, const OUString& rName, long nYPos );