diff options
author | nyamatongwe <devnull@localhost> | 2011-04-02 19:30:31 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-04-02 19:30:31 +1100 |
commit | 5b491fb6124522b148a16dd026e563c90af316db (patch) | |
tree | 9f18278ae065a469e6618ffa77d32388160d7b6c /src/ViewStyle.cxx | |
parent | 32641e65974cbebb09caa9371e8f33aefedf23ab (diff) | |
download | scintilla-mirror-5b491fb6124522b148a16dd026e563c90af316db.tar.gz |
Fixed bug where the height of the default style was used rather than the maximum.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 8 |
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; } } |