aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-04-02 19:30:31 +1100
committernyamatongwe <devnull@localhost>2011-04-02 19:30:31 +1100
commit5b491fb6124522b148a16dd026e563c90af316db (patch)
tree9f18278ae065a469e6618ffa77d32388160d7b6c /src
parent32641e65974cbebb09caa9371e8f33aefedf23ab (diff)
downloadscintilla-mirror-5b491fb6124522b148a16dd026e563c90af316db.tar.gz
Fixed bug where the height of the default style was used rather than the maximum.
Diffstat (limited to 'src')
-rw-r--r--src/ViewStyle.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 24272789c..1c1f93170 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -117,10 +117,10 @@ FontRealised *FontRealised::Find(const FontSpecification &fs) {
void FontRealised::FindMaxAscentDescent(unsigned int &maxAscent, unsigned int &maxDescent) {
FontRealised *fr = this;
while (fr) {
- if (maxAscent < ascent)
- maxAscent = ascent;
- if (maxDescent < descent)
- maxDescent = descent;
+ if (maxAscent < fr->ascent)
+ maxAscent = fr->ascent;
+ if (maxDescent < fr->descent)
+ maxDescent = fr->descent;
fr = fr->frNext;
}
}