From d12066ddf93ee87b6263d7cf5045be43aaa9e6a0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 9 Feb 2003 00:38:33 +0000 Subject: Protected style fixed in several ways. Method to determine cheaply if protection turned on at all. Caret movement doesn't skip over text outside protected range. Methods for deciding if a range or the selection contains protected text. Several deletion commands perform no action if they would delete protected text. Two phase drawing no longer draws invisible text. --- src/Style.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Style.h') diff --git a/src/Style.h b/src/Style.h index 63259b1a9..6245b0b77 100644 --- a/src/Style.h +++ b/src/Style.h @@ -49,7 +49,7 @@ public: void ClearTo(const Style &source); bool EquivalentFontTo(const Style *other) const; void Realise(Surface &surface, int zoomLevel, Style *defaultStyle = 0); - bool IsProtected() { return !(changeable && visible);} ; + bool IsProtected() const { return !(changeable && visible);}; }; #endif -- cgit v1.2.3