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

Commit c5239a9

Browse files
committed
[Bug 14079] Ensure one can set subscripts/superscripts more than once
1 parent f4a6958 commit c5239a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-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

0 commit comments

Comments
 (0)