Skip to content

Commit

Permalink
Github Issue #184: Modified the last character of checkboxe symbols t…
Browse files Browse the repository at this point in the history
…o be shown so that one unicode checkbox isn't hidden by the mask
  • Loading branch information
AngryFender committed Jul 7, 2024
1 parent 5ffc17a commit 5d4eef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formatdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ void FormatData::addFormat(const int start, const int end,const QString &symbol,
positions.append(new PositionData(start,CHECK_SYMBOL_START));
positions.append(new PositionData(end,CHECKED_SYMBOL_END));
addHiddenFormat(start, end, 3, FragmentData::CHECKED_END);
addMaskBit(start,CHECK_SYMBOL_START,end,CHECKED_SYMBOL_END);
addMaskBit(start,CHECK_SYMBOL_START,end-1,CHECKED_SYMBOL_END);
return;
}else if (symbol == UNCHECKED_SYMBOL_END){
positions.append(new PositionData(start,CHECK_SYMBOL_START));
positions.append(new PositionData(end,UNCHECKED_SYMBOL_END));
addHiddenFormat(start, end, 3, FragmentData::UNCHECKED_END);
addMaskBit(start,CHECK_SYMBOL_START,end,UNCHECKED_SYMBOL_END);
addMaskBit(start,CHECK_SYMBOL_START,end-1,UNCHECKED_SYMBOL_END);
return;
}else if (symbol == LINK_SYMBOL_TITLE_END){
positions.append(new PositionData(start,LINK_SYMBOL_TITLE_START));
Expand Down

0 comments on commit 5d4eef9

Please sign in to comment.