diff options
Diffstat (limited to 'scintilla/src/ViewStyle.cxx')
-rw-r--r-- | scintilla/src/ViewStyle.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scintilla/src/ViewStyle.cxx b/scintilla/src/ViewStyle.cxx index 29c6bbb..e95b819 100644 --- a/scintilla/src/ViewStyle.cxx +++ b/scintilla/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;
}
}
|