Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 465f761

Browse files
Merge pull request #2007 from livecode/bugfix-14079
[Bug 14079] Ensure one can set subscripts/superscripts more than once
2 parents f4a6958 + 862c437 commit 465f761

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8520,7 +8520,9 @@ on ideStyleText pSelectedChunk, pSelectedObject, pIsField, pWhich, pValue
85208520

85218521
if pWhich is "superscript" then put -4 into tTextShiftAmount
85228522
else put 4 into tTextShiftAmount
8523-
if the textShift of tTarget is a number then put 0 into tTextShiftAmount
8523+
if the textShift of tTarget is a number AND the textShift of tTarget is not 0 then
8524+
put 0 into tTextShiftAmount
8525+
end if
85248526

85258527
set the textShift of tTarget to tTextShiftAmount
85268528
break

notes/bugfix-14079.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure subscripts and superscripts can be set more than once

0 commit comments

Comments
 (0)