diff options
author | nyamatongwe <unknown> | 2011-04-02 19:30:31 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-04-02 19:30:31 +1100 |
commit | ec0a06406527e5786b7ef4a7afebced13735c9f2 (patch) | |
tree | 7ff70caa62d71f0e2e568f20d2c15b52cf19bf9a /src | |
parent | 5b0a22e9eab042ab2bf8d9addbf9ad7bbe156160 (diff) | |
download | scintilla-mirror-ec0a06406527e5786b7ef4a7afebced13735c9f2.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.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; } } |