diff options
author | nyamatongwe <unknown> | 2000-08-16 12:55:58 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-08-16 12:55:58 +0000 |
commit | 3573aa38b55d48abb0c3a0632894a51dedd460ff (patch) | |
tree | cd622b4abbd40ec758d4aa320dda9b2cec20c799 /src/Style.cxx | |
parent | 01ee5832076b4be7fcbbb0bf5bdcc4f1f534698b (diff) | |
download | scintilla-mirror-3573aa38b55d48abb0c3a0632894a51dedd460ff.tar.gz |
Invisible text.
Fixes to ensure long lines do not overflow buffers.
Diffstat (limited to 'src/Style.cxx')
-rw-r--r-- | src/Style.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Style.cxx b/src/Style.cxx index 7aa44c0eb..0a52ed41a 100644 --- a/src/Style.cxx +++ b/src/Style.cxx @@ -14,13 +14,13 @@ Style::Style() { aliasOfDefaultFont = true; Clear(Colour(0,0,0), Colour(0xff,0xff,0xff), Platform::DefaultFontSize(), 0, SC_CHARSET_DEFAULT, - false, false, false, false); + false, false, false, false, true); } Style::Style(const Style &source) { Clear(Colour(0,0,0), Colour(0xff,0xff,0xff), 0, 0, 0, - false, false, false, false); + false, false, false, false, true); fore.desired = source.fore.desired; back.desired = source.back.desired; characterSet = source.characterSet; @@ -29,6 +29,7 @@ Style::Style(const Style &source) { size = source.size; eolFilled = source.eolFilled; underline = source.underline; + visible = source.visible; } Style::~Style() { @@ -44,7 +45,7 @@ Style &Style::operator=(const Style &source) { return *this; Clear(Colour(0,0,0), Colour(0xff,0xff,0xff), 0, 0, SC_CHARSET_DEFAULT, - false, false, false, false); + false, false, false, false, true); fore.desired = source.fore.desired; back.desired = source.back.desired; characterSet = source.characterSet; @@ -53,12 +54,13 @@ Style &Style::operator=(const Style &source) { size = source.size; eolFilled = source.eolFilled; underline = source.underline; + visible = source.visible; return *this; } void Style::Clear(Colour fore_, Colour back_, int size_, const char *fontName_, int characterSet_, - bool bold_, bool italic_, bool eolFilled_, bool underline_) { + bool bold_, bool italic_, bool eolFilled_, bool underline_, bool visible_) { fore.desired = fore_; back.desired = back_; characterSet = characterSet_; @@ -68,6 +70,7 @@ void Style::Clear(Colour fore_, Colour back_, int size_, fontName = fontName_; eolFilled = eolFilled_; underline = underline_; + visible = visible_; if (aliasOfDefaultFont) font.SetID(0); else |