From cfd7180e33b49c884738f4975584f0d010a28b99 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 7 Jun 2011 11:30:23 +1000 Subject: Make SCN_NEEDSHOWN notification work when word wrap is enabled. This fixes the last remaining issue from bug #3291579. From Marko Njezic --- src/ContractionState.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ContractionState.cxx') diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 8a1b486e7..4478f3844 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -168,6 +168,14 @@ bool ContractionState::SetVisible(int lineDocStart, int lineDocEnd, bool visible } } +bool ContractionState::HiddenLines() const { + if (OneToOne()) { + return false; + } else { + return !visible->AllSameAs(1); + } +} + bool ContractionState::GetExpanded(int lineDoc) const { if (OneToOne()) { return true; -- cgit v1.2.3