From 50042e8d340a9a8f00028b850d18b721f19000c3 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/RunStyles.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/RunStyles.cxx') diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index 460d5d244..0f2196972 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -216,3 +216,14 @@ void RunStyles::DeleteRange(int position, int deleteLength) { } } +bool RunStyles::AllSame() const { + for (int run = 1; run < starts->Partitions(); run++) { + if (styles->ValueAt(run) != styles->ValueAt(run - 1)) + return false; + } + return true; +} + +bool RunStyles::AllSameAs(int value) const { + return AllSame() && (styles->ValueAt(0) == value); +} -- cgit v1.2.3