Skip to content

Commit 23be5e7

Browse files
authored
Merge d146564 into ce28256
2 parents ce28256 + d146564 commit 23be5e7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

source/NVDAObjects/window/excel.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,12 @@ def _getFormatFieldAndOffsets(self,offset,formatConfig,calculateOffsets=True):
994994
formatField['italic']=fontObj.italic
995995
underline=fontObj.underline
996996
formatField['underline']=False if underline is None or underline==xlUnderlineStyleNone else True
997+
formatField['strikethrough'] = fontObj.strikethrough
998+
if formatConfig['reportSuperscriptsAndSubscripts']:
999+
if fontObj.superscript:
1000+
formatField['text-position'] = 'super'
1001+
elif fontObj.subscript:
1002+
formatField['text-position'] = 'sub'
9971003
if formatConfig['reportStyle']:
9981004
try:
9991005
styleName=self.obj.excelCellObject.style.nameLocal
@@ -1471,7 +1477,7 @@ def reportFocus(self):
14711477
formatField.update(field.field)
14721478
if not hasattr(self.parent,'_formatFieldSpeechCache'):
14731479
self.parent._formatFieldSpeechCache = textInfos.Field()
1474-
if formatField:
1480+
if formatField or self.parent._formatFieldSpeechCache:
14751481
sequence = speech.getFormatFieldSpeech(
14761482
formatField,
14771483
attrsCache=self.parent._formatFieldSpeechCache,

0 commit comments

Comments
 (0)