diff options
| author | Neil <unknown> | 2015-04-14 10:07:12 +1000 | 
|---|---|---|
| committer | Neil <unknown> | 2015-04-14 10:07:12 +1000 | 
| commit | 1197075ff12ff8dbd1f4e87a58d8bd70b806e99f (patch) | |
| tree | 96397d96a53e696aa901cfa2f99f15a5a731b9fb | |
| parent | 5b4b87fca48a3717b73a6153dfb62adba04fb96a (diff) | |
| download | scintilla-mirror-1197075ff12ff8dbd1f4e87a58d8bd70b806e99f.tar.gz | |
Ensure SCI_TEXTHEIGHT uses valid style data and remove test pauses that
hid this.
| -rw-r--r-- | src/Editor.cxx | 1 | ||||
| -rw-r--r-- | test/simpleTests.py | 3 | 
2 files changed, 1 insertions, 3 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 2f2458861..77d9ce5e7 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6227,6 +6227,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  		return TextWidth(static_cast<int>(wParam), CharPtrFromSPtr(lParam));  	case SCI_TEXTHEIGHT: +		RefreshStyleData();  		return vs.lineHeight;  	case SCI_SETENDATLASTLINE: diff --git a/test/simpleTests.py b/test/simpleTests.py index 590d288b8..4e8462c71 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -139,7 +139,6 @@ class TestSimple(unittest.TestCase):  		data = b"x" * 70 + b"\n"  		for i in range(5):  			self.ed.AddText(len(data), data) -			self.xite.DoEvents()  			self.assertEquals(self.ed.LineCount, i + 2)  		self.assert_(self.ed.Length > 0) @@ -1169,8 +1168,6 @@ class TestTextMargin(unittest.TestCase):  		self.assertEquals(self.ed.ExtraAscent, 1)  		self.ed.ExtraDescent = 2  		self.assertEquals(self.ed.ExtraDescent, 2) -		# Allow line height to recalculate -		self.xite.DoEvents()  		lineHeightIncreased = self.ed.TextHeight(0)  		self.assertEquals(lineHeightIncreased, lineHeight + 2 + 1) | 
