aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index b22666cf0..f20645251 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -252,6 +252,8 @@ ViewStyle::ViewStyle(size_t stylesSize_) :
ctrlCharPadding = 3; // +3 For a blank on front and rounded edge each side
lastSegItalicsOffset = 2;
+ autocStyle = StyleDefault;
+
localeName = localeNameDefault;
}
@@ -792,7 +794,8 @@ FontRealised *ViewStyle::Find(const FontSpecification &fs) {
void ViewStyle::FindMaxAscentDescent() noexcept {
for (size_t i = 0; i < styles.size(); i++) {
- if (i == StyleCallTip)
+ if (i == StyleCallTip ||
+ (autocStyle != StyleDefault && i == static_cast<size_t>(autocStyle)))
continue;
const auto &style = styles[i];